Re: Selecting all records between a date range

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

 



Jason Pruim wrote:

> Hi Everyone,
> 
> I am working on a app where I need to be able to select all the values
> from a database where the 'timein' field is between a certain date
> range... Essentially the last 7 days...
> 

SELECT * FROM timeStore WHERE timein>DATE_SUB(now(),INTERVAL 7 DAYS) 


/Per Jessen, Zürich


--
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