Jump to content

[SOLVED] Adding Values Together Based On Another Row


jj20051

Recommended Posts

Here Is What I Came Up With Based Upon The Statement Above:

 

$refer = mysql_query("SELECT SUM(uCash) FROM users WHERE uReferrer = 1")
or die(mysql_error()); 


echo $refer;

 

I Get:

Resource id #3

 

Witch Basically Says There Are 3 Rows In The Database, Witch Their Are.... What Is Wrong?

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.