Jump to content

I Need Help With Suming Up Integer Data Values Fetch From My Database


talk2toyin

Recommended Posts

Here's my source code please.....

$sql = "select c_load from accndi_i";

$res = mysql_query($sql);

while($credits = mysql_fetch_assoc($res)) {

while($currentcredit = each($credits)) {

echo $currentcredit["value"]."+";

}

}

/*but, what i really want is to sum up the values fetched from my c_load column in my accndi_i table.

Assistance urgently needed please. Thanks

*/

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.