<% if(session("login")<>"yes") then response.redirect("login.asp?URLFIRE=purchasehistory.asp") end if %> <% set rso = con.execute("select *from purchase where orderid in(select orderid from orders where username='" & session("curuser") & "')") %>

 



Purchase History
 

<% totamt=0 do while not rso.eof %> <% totamt = totamt + rso("price") rso.moveNext loop %>
Code Product Qty.

Amount

<%=rso("pcode")%> <%=rso("pname")%> <%=rso("qty")%> $<%=rso("price")%>

Total :- $<%=totamt%>