A
Anonymous
Guest
$totalCost=0;
while($row = $result->fetch_assoc())
{
$totalCost+=$row["price"];
---------------------------------
why $totalcost=0?what happen?
while($row = $result->fetch_assoc())
{
$totalCost+=$row["price"];
---------------------------------
why $totalcost=0?what happen?