SQL error

StanleyDev

Member
Nov 13, 2011
35
0
im making a lottery system and im getting this error:

Code:
mysql_fetch_object(): supplied argument is not a valid MySQL result resource

the line thats causing it is:

Code:
$credits = mysql_query("SELECT * FROM users WHERE `id` = '$id'");
                  $row = mysql_fetch_object($credits); << this is the actual line im getting the error from.
                  $credits = $row->credits;

any ideas whats casuing it?
 

Users who are viewing this thread

Top