Re: Select record by ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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,





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux