Re: Supplied argument is not a valid MySQL result resource
| From: | David Freeman | Date: | Sun, 28 Apr 2002 23:17:39 +0000 |
| Subject: | Re: Supplied argument is not a valid MySQL result resource | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95052@lists.php.net to get a copy of this message | ||
On 28 Apr 2002 at 15:14, Dan McCullough wrote:
> What does that error mean?
>
> $result = mysql_query('select * from aannh_towns;');
> echo 'info stored';
> while ($query_data = mysql_fetch_array($result)) {
> echo "", $query_data['town'], "",
> $query_data['town_id'], ""; }
> ?>
Means you stuffed up your sql query. If you've copied it down right
then I'd say you need to ditch the ';' from your query.
CYA, Dave