Re: [PHP-DB] Re: UPDATE command

2005-06-20 Thread Dwight Altman
"This is kind of interesting ... $query="SELECT * FROM quiettimequotation WHERE used = 0 ORDER BY RAND() LIMIT 1"; works; $query="SELECT * FROM bibleverses WHERE 'used' = 0 ORDER BY RAND() LIMIT 1"; doesn't! Having the ' around used makes that select command fail --- but the UPDATE command req

Re: [PHP-DB] Re: UPDATE command

2005-06-20 Thread -{ Rene Brehmer }-
Documented research indicate that on Mon, 20 Jun 2005 12:47:56 +0100, [EMAIL PROTECTED] wrote: > The trick is your using the wrong ' instead you need ` ... > > go away from kl;->' and go to `->123 ;) > The key above the (Tab) key, or the key next to the number 1 above the q. I hope you realis

RE: [PHP-DB] Re: UPDATE command

2005-06-20 Thread bastien_k
used is a column name, if you need to surround it use the back ticks (beow the esc key, same button as the tilde (~). That is why it fails...it shouldn't be req'd for the update, though the value may need to be quoted depending on the col data type Bastien >From: "Ron Piggott" <[EMAIL PROTECTE

RE: [PHP-DB] Re: UPDATE command

2005-06-20 Thread jusa_98
The trick is your using the wrong ' instead you need ` ... go away from kl;->' and go to `->123 ;) The key above the (Tab) key, or the key next to the number 1 above the q. so ... $query="SELECT * FROM bibleverses WHERE `used` = 0 ORDER BY RAND() LIMIT 1"; When I first learned this also

RE: [PHP-DB] Re: UPDATE command

2005-06-19 Thread JeRRy
The trick is your using the wrong ' instead you need ` ... go away from kl;->' and go to `->123 ;) The key above the (Tab) key, or the key next to the number 1 above the q. so ... $query="SELECT * FROM bibleverses WHERE `used` = 0 ORDER BY RAND() LIMIT 1"; When I first learned this also

RE: [PHP-DB] Re: UPDATE command

2005-06-18 Thread Bastien Koert
used is a column name, if you need to surround it use the back ticks (beow the esc key, same button as the tilde (~). That is why it fails...it shouldn't be req'd for the update, though the value may need to be quoted depending on the col data type Bastien From: "Ron Piggott" <[EMAIL PROTECT