Posted by Greg Donald on 04/13/05 01:08
On Apr 12, 2005 2:33 PM, J J <squid_66@yahoo.com> wrote:
> I'm struggling with the php or mysql query to find
> records within my database that are within 15 minutes
> from now and prior.
> select NOW(), DATE_ADD( NOW(), INTERVAL 15 MINUTE );
+---------------------+---------------------------------------+
| NOW() | DATE_ADD( NOW(), INTERVAL 15 MINUTE ) |
+---------------------+---------------------------------------+
| 2005-04-12 17:02:33 | 2005-04-12 17:17:33 |
+---------------------+---------------------------------------+
1 row in set (0.00 sec)
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
[Back to original message]
|