phpretard Posted August 15, 2009 Share Posted August 15, 2009 I have multiple rows in a table each containing a quantity field. how can I display the row values as seperate values? connect(); $show_cart=mysql_query("select qty from cart where cid='".$_SESSION['cid']."'"); while($show = mysql_fetch_assoc($show_cart)) { $addend=['qty']; }free($show_cart); Any Thoughts? Please don't move me... Link to comment https://forums.phpfreaks.com/topic/170426-solved-not-math-help/ Share on other sites More sharing options...
bobocheez Posted August 15, 2009 Share Posted August 15, 2009 hey retard, this goes in the math section ask an admin to move it Link to comment https://forums.phpfreaks.com/topic/170426-solved-not-math-help/#findComment-898992 Share on other sites More sharing options...
wildteen88 Posted August 15, 2009 Share Posted August 15, 2009 $addend=['qty']; should be $addend += $show['qty']; After your while do echo $addend; Link to comment https://forums.phpfreaks.com/topic/170426-solved-not-math-help/#findComment-898996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.