[sql] Onlineliste ausgeben
Verfasst: 28.08.2007 13:16
Hallo, ich habe folgenden Code:
Und bekomme einen mysql fehle:
Ambience
Code: Alles auswählen
$sql = 'SELECT `username`
FROM ' . USERS_TABLE . '
WHERE `active_room` = "' . $db->safe($_SESSION['active_room']) . '"
AND `last_action` > ' . time()-1800;
Ich hatte eigentlich vor, alle User auszulesen, welche in einem raum sind und innerhalb der letzen 30 minuten online waren... aber ich weiß nicht was daran falsch sein sollte..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 '-1800' at line 1
Ambience