View Single Post
  #2  
Old 08-22-2006, 12:39 PM
dreamers dreamers is offline
Junior Member
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dreamers is on a distinguished road
Default

Try this code

SELECT SUM(price) as total FROM products WHERE POID = '$POID' GROUP BY POID

that should total up all items with that POID -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - Math Op Addition of Values in repeated table
View Single Post
  #2  
Old 08-22-2006, 12:39 PM
dreamers dreamers is offline
Junior Member
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dreamers is on a distinguished road
Default

Try this code

SELECT SUM(price) as total FROM products WHERE POID = '$POID' GROUP BY POID

that should total up all items with that POID -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote