trying to show a total from mysql in php

Summontheevil

New Member
I am trying to get the qunt with are int and add them all up and show a total\[code\]$qunt = 0;$result = mysql_query("SELECT * FROM properties_items WHERE user_propid='$view' ORDER BY id DESC") or die (mysql_error()); while ($row = mysql_fetch_array($result)) { $itemid = $row['itemid']; $qunt = $row['qunt']; $qunt++;}echo $qunt;\[/code\]
 
Back
Top