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... Quote 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 Quote 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; Quote Link to comment https://forums.phpfreaks.com/topic/170426-solved-not-math-help/#findComment-898996 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.