RE: [PHP] Database Error
| From: | Navid Yar | Date: | Wed, 06 Mar 2002 10:27:00 +0000 |
| Subject: | RE: [PHP] Database Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87595@lists.php.net to get a copy of this message | ||
I'm thinking that it probably has to do with the quoting scheme or
something else. I tried it on the command line, and it worked fine. I
don't even think it matters what types of quotes I use around the id
field. I tried both (single and double) on the command line, and it
worked just fine. In other words, the SQL is fine, and there's nothing
wrong with it. It must either be how I placed the sql statement into the
query or how the class is executed. I'm not sure. It might entirely be
something else. But, any help on this is really appreciated.
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.com.hk]
Sent: Thursday, March 07, 2002 3:51 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Database Error
On Wednesday 06 March 2002 17:56, Navid Yar wrote:
> Ok guys, I need help with this one. I am getting the error: Error in
> query: SELECT label FROM menu WHERE id = '1'. Why am I getting this
> error? It seems right to me. I have the following code to call the
class
> object, and I listed the class below it (I'm fairly new to classes):
>
Try plugging your query directly into mysql (at the command-line) to see
whether it's a mysql problem or a php one.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
"If anything can go wrong, it will."
-- Edsel Murphy
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php