Re: Finding records within 15 minutes from now?

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

 



On Apr 12, 2005 2:33 PM, J J <squid_66@xxxxxxxxx> 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/

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