Adding rows
I've never done calculations in ColdFusion before so I don't even know where to start. I would like to put a total at the bottom of each row of returned values. How do I go about doing that? I know none of this right, but here's my code:
<cfoutput query="GetList">
<tr>
<td valign="top" id="text">#ProjectName#</td>
<td valign="top" id="text">#Phase#</td>
<td valign="top" id="text">#Target_Quarter#</td>
<td valign="top" id="text">#DollarFormat(Project_Cost)#</td>
<td valign="top" id="text">#DollarFormat(Q1_Costs)#</td>
<td valign="top" id="text">#DollarFormat(Actual_q1_Costs)#</td>
</tr>
</cfoutput>
Heres where I want to show the totals from the above values:
<cfoutput query="GetTotal">
<tr>
<td valign="top" id="text" align="right" colspan="3"><b>TOTALS:</b></td>
<td valign="top" id="text2">#DollarFormat(Total.Project_Cost)#</td>
<td valign="top" id="text2">#DollarFormat(Total.Q1_Costs)#</td>
<td valign="top" id="text2">#DollarFormat(Total.Actual_q1_Costs)#</td>
</tr>
</cfoutput>
Thanks!
