RE: [PHP-DB] not a valid MySQL result
| From: | Wilmar Perez | Date: | Fri, 06 Sep 2002 19:08:06 +0000 |
| Subject: | RE: [PHP-DB] not a valid MySQL result | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21616@lists.php.net to get a copy of this message | ||
Hi guys
Thanks for your help. Peter was right I had an error in the sentence, I
worked it out but still the same error came up. The mysql_error() function
doesn't return any thing.
Any idea?
Thanks a lot.
>Hi
>Couple of points, you probably have an SQL error,
>I use
>echo $query;
>echo '<br>'.mysql_error();
>which shows the query and the error
>you use 'author-cat' in the table name
>and 'author_cat' and 'author-cat' in the where clause which will throw an
>error.
*******************************************************
Wilmar Pérez
Network Administrator
Library System
Tel: ++57(4)2105145
University of Antioquia
Medellín - Colombia
2002
*******************************************************