Please help me, my while loop seems to break after the first loop as $totalprice is only echoed once. What could be the cause?
$pplresult = mysql_query("SELECT * FROM repplac WHERE Uname = '{$_SESSION['username']}'") or die(mysql_error());
while ($row = mysql_fetch_assoc($pplresult))
//echo $row['Pquantity'] * $row['Price'];
$totalprice = $row['Price'] * $row['Pquantity'];
echo "$totalprice";
1 Answer