Re: new to php/mysql
| From: | Matt | Date: | Fri, 31 Jan 2003 22:56:22 +0000 |
| Subject: | Re: new to php/mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133836@lists.php.net to get a copy of this message | ||
"Sam" <juneaushin@yahoo.com> wrote in message
news:20030131184428.82141.qmail@pb1.pair.com...
> i'm new to this php/mysql thing - i've defected microsoft.
> when trying to pull data from a table in mysql, i get the following error:
>
> Warning: mysql_fetch_row(): supplied argument is not a valid MySQL
> result resource in C:\cn\test.php on line 24
1. echo out the sql statement and look at it to see what's wrong.
2. echo out mysql_error() and see what that does to help
3. Check the return value of mysql_query after each exec, a failed query
means bad sql, mysql_error says what.