Jump to content

SQL -> less than or equal to problem


psychohagis

Recommended Posts

I have the following code:[code]$timeout = time() - 1200;

$setoffline = "UPDATE users SET online=0
WHERE online=1 AND lasttime='$timeout'";
if (!@mysql_query($setoffline)) {
echo 'Error: ' . mysql_error();
}[/code]

and i get the following problem:

[quote]Error (set status): You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '<='1168466894', lastpage='his/her homepage' WHERE id='1'' a [/quote]
Link to comment
https://forums.phpfreaks.com/topic/33654-sql-less-than-or-equal-to-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.