$totalCost=0;
while($row = $result->fetch_assoc())
{
$totalCost+=$row["price"];
------------------------------
--->why the $totalCost always is 0?
cty 0 Newbie Poster
UrbanSky 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.