View Single Post

  #1 (permalink)  
Old 11-09-2007
Austin Pickett
 
Posts: n/a
Default UPDATE'ing with multiple WHERES

So essentially I'm making a basic user online script with a timeout.
However, it doesn't seem to be working and I feel that my problem lies
within the UPDATE statement which updates a certain selection of
multiple 'WHERE's

The code:

UPDATE list SET on='1' WHERE user='$user' AND user_logged<$timeout

If anyone with some experience with this could take a look, much would
be appreciated.

Thanks!

Reply With Quote