Re: Select record by ID

From: Date: Mon, 29 Jan 2007 02:12:05 +0000
Subject: Re: Select record by ID
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-247927@lists.php.net to get a copy of this message
As someone else already stated, my best guess according to that error is that $user_id has a null, or inappropriate value. The error occurs at the last character of the query, so it has to be something like hat. Echo the query and let us know what it outputs. - Craige On 1/28/07, Francisco M. Marzoa Alonso <francisco@marzoa.com> wrote:
On dom, 2007-01-28 at 18:20 -0600, Larry Garfield wrote: On Sunday 28 January 2007 5:54 pm, Francisco M. Marzoa Alonso wrote:
On dom, 2007-01-28 at 18:51 -0500, nitrox . wrote:
I took the quotes off. I thought that quotes around numbers was wrong also.
Quotes are no necessary around numeric values, but they aren't wrong neither, simply optional.
Actually, I believe they are wrong in some database engines but not others. MySQL doesn't care. Some others do. Yes, it sucks. :-( Good point, but he's using mysql in this case, and in mysql they're simply optional but not wrong. Regards,


« previous php.general (#247927) next »