<%
Total_Buy_Price = 0
Total_No_Buy_Price = 0
Total_Price = 0
Do While not rs.EOF
%>
<tr>
<td valign="top" class="Normal_Text"><% Response.write rs("item") %></td>
<td valign="top" class="Normal_Text">£<%= FormatNumber(rs("price"),2
<td valign="top" class="Normal_Text">
<% If rs("buy") = "Yes" Then
Total_Buy_Price = Total_Buy_Price + rs("price")
%>
<a href="Update_Buy_No.asp?ID
<% else
Total_No_Buy_Price = Total_No_Buy_Price + rs("price")
%>
<a href="Update_Buy_Yes.asp?I
<% end if %>
<%
Price_Total = Price_Total + rs("price")
rs.MoveNext
Loop
%>
<pre>
Total Yes Price :<%=Total_Buy_Price%><br>
Total No Price :<%=Total_No_Buy_Price%><b
Total Price :<%=Total_Price%></pre>
Main Topics
Browse All Topics





by: ryancysPosted on 2007-07-11 at 18:27:48ID: 19468090
try:
) %></td>
=<% Response.write rs("entry_id") %>"><% Response.write rs("buy") %></a> D=<% Response.write rs("entry_id") %>"><% Response.write rs("buy") %></a>
<%
Price_Total = 0
Do While not rs.EOF
%>
<tr>
<td valign="top" class="Normal_Text"><% Response.write rs("item") %></td>
<td valign="top" class="Normal_Text">£<%= FormatNumber(rs("price"),2
<td valign="top" class="Normal_Text">
<% If rs("buy") = "Yes" Then %>
<a href="Update_Buy_No.asp?ID
<%
Price_Total = Price_Total + rs("price")
else
%>
<a href="Update_Buy_Yes.asp?I
<% end if %>
<%
rs.MoveNext
Loop
%>