Terion Miller wrote:
Need syntax help when it comes to using a timestamp.
What I'm trying to say in my query WHERE clause is to select records
timestamp on the record is in the past 7 days from NOW()
$query .= " WHERE stamp < NOW()-7 "; I have no clue here on this ....
the lay language is WHERE stamp is within the past 7 days.... how to php
Has nothing at all to do with php.
$query .= " WHERE stamp < ".(time()-7*3600*24);
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php