Re: Finding records within 15 minutes from now?

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

 



Hello,

Tuesday, April 12, 2005, 8:33:08 PM, you wrote:

JJ> I'm struggling with the php or mysql query to find records within
JJ> my database that are within 15 minutes from now and prior.

Assuming MySQL:

SELECT * FROM blah WHERE RecordTime > DATE_SUB(now(), interval
15 min)

(something like that, going from memory here)

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

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