Forum Moderators: coopster
while ($row = mysql_fetch_assoc($result)) {
echo $row['pmt'];
}
Now what i want to do is that add all the $row['pmt'], store the added value in a variable and display......
But cud u tell me why did u use .=?
Wht is the dot there for?
it should be
$mytotal = 0; while ($row = mysql_fetch_assoc($result)) { $mytotal += $row['pmt']; } echo $mytotal;
sorry about that