Jump to content

MYSQL HELP .. PLEASE ANYONE HELP ME WITH THIS


Luther_Caloring

Recommended Posts

You would best be done in the processing code after you run the query.

 

 

$query = "SELECT * FROM tbl_payment ORDER BY `Payment No.`";
$result = mysql_query($query) or die (mysql_error());
 
$total = 0;
while($row = mysql_fetch_assoc($result))
{
    $total += $row['Amount'];
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.