MySQL Forums
Forum List  »  PHP

Re: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in public_html/games.php on line 16
Posted by: Phill Hargreaves
Date: January 22, 2007 11:13PM

Thanks Bob,

this is what I got from that.

Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Actual query: SELECT * FROM cats WHERE id=

Regards, Phill

Bob Field Wrote:
-------------------------------------------------------
> > $query = "SELECT * FROM cats WHERE id=$id";
> $qr1 = mysql_query ($query)
> or die ("Query failed: " . mysql_error() . "
> Actual query: " . $query);
>

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in public_html/games.php on line 16
January 22, 2007 11:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.