Re: MySQL error
| From: | jeremy brand | Date: | Tue, 10 Oct 2000 01:09:41 +0000 |
| Subject: | Re: MySQL error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19278@lists.php.net to get a copy of this message | ||
It most likely means that your result, $info, is not valid (IE, there
are no rows).
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
>
> I'm getting the following error:
> Warning: Supplied argument is not a valid MySQL result resource .....
>
> Here's the code:
> $query="SELECT * FROM games WHERE
> genre=$gameone_genre&number=$gameone_number";
> $info=mysql_query($query,$db);
> $row=mysql_fetch_row($info);
>
> The last line is the one causing the error. What am I doing wrong?
>
> Thanks
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>