note 26038 deleted from function.date by sniper

From: Date: Sat, 18 Jan 2003 01:32:54 +0000
Subject: note 26038 deleted from function.date by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42316@lists.php.net to get a copy of this message
You may find this useful... This mySQL statement pulls rows from a table starting from 7 days in the past.. Saves doing it in PHP and manipulating results via date functions before or after. SELECT * FROM releases WHERE release_date >= FROM_DAYS((TO_DAYS(NOW())-7)); of course releases and release_date are whatever table and field in your database respectively.

« previous php.notes (#42316) next »