
February 9th, 2000, 09:19 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
You can use the mysql date/time functions, specifically date_add() and date_sub().
Let's say you want the records where date is less than 7 days old.
select * from table where date_add(date_field, interval 7 day)> now();
See the mysql manual for more detail
|