Jump to content

[SOLVED] quick sql help


sandrob57

Recommended Posts

try this:

 

echo "Total Donations: $".$data_donations['SUM(donations)']."";

 

Or this:

 

$result = dbquery("SELECT SUM(donations) Donations FROM fusion_users WHERE donations>0");
$data_donations = dbarray($result);

echo "Total Donations: $".$data_donations['Donations']."";

 

--FrosT

Link to comment
https://forums.phpfreaks.com/topic/42075-solved-quick-sql-help/#findComment-204088
Share on other sites

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.