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!
|