Hi,
allerdings bei der folgenden syntax:
mysql_query("DELETE FROM x WHERE Datum=now()-24h WHERE ID='$id'");
folgende idee:
mysql_query("DELETE FROM x WHERE Datum=now()-time()+0*24*0*0, WHERE ID='$id'");
ist dies so machbar?
Nein. Weil auch DATETIME kein Unix Timestamp ist, time() aber einen solchen liefert.
Und wofür du 0 mal irgendwas drauf addieren willst, ist auch nicht klar - aber hier Sekunden drauf addieren zu wollen, wäre ebenso falsch.
Noch mal: Schau dir die Datums- und Zeit-Funktionen an, die MySQL anbietet.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]