You are here: Re: PHP & DateTime query « All PHP « IT news, forums, messages
Re: PHP & DateTime query

Posted by Codik on 03/08/06 15:30

Good day.

I don't understand why You are using DATETIME field, when You want
finding data only by date. My opion is. You create a DATE field and You
use for 1. query:
SELECT * FROM table WHERE date = '2006-01-01'

And for 2. query:
SELECT * FROM perform1 WHERE date >= '2006-01-01' AND date <=
'2006-01-03'

--
When my English is bad, sorry.

 

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

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