You are here: Re: [PHP] Finding records within 15 minutes from now? « PHP « IT news, forums, messages
Re: [PHP] Finding records within 15 minutes from now?

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация