StanleyDev
Member
- Nov 13, 2011
- 35
- 0
im making a lottery system and im getting this error:
the line thats causing it is:
any ideas whats casuing it?
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?