Re: syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc Steinert wrote:
Terion Miller wrote:

$query .= " WHERE stamp < NOW()-7 ";  I have no clue here on this ....

Try

$query .= " WHERE stamp < SUBDATE(NOW(), INTERVAL -7 DAY)";

instead.

Marc


Damn, hit the send-button too fast. Replace -7 with 7. Sry for spamming the list.

--
http://bithub.net/
Synchronize and share your files over the web for free


My Twitter feed
http://twitter.com/MarcSteinert





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux