Re: syntax

From: Date: Tue, 24 Feb 2009 21:21:39 +0000
Subject: Re: syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-288760@lists.php.net to get a copy of this message
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 -- http://bithub.net/ Synchronize and share your files over the web for free My Twitter feed http://twitter.com/MarcSteinert

« previous php.general (#288760) next »