Jump to content

[SOLVED] Really easy mysql question.


Zepo.

Recommended Posts

I never used inequalities in a mysql query before so idk why this isnt working...

Gives the error Blah...right syntax to use near '' at line 1

 

$timeoutseconds = 300;
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
mysql_query("DELETE FROM teamsonline WHERE timestamp<$timeout") or die(mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/79784-solved-really-easy-mysql-question/
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.