Re: Finding records within 15 minutes from now?
| From: | Richard Davey | Date: | Tue, 12 Apr 2005 21:58:42 +0000 |
| Subject: | Re: Finding records within 15 minutes from now? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212958@lists.php.net to get a copy of this message | ||
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