You are here: Re: php « PHP Programming Language « IT news, forums, messages
Re: php

Posted by Gordon Burditt on 10/08/06 04:36

>SQL query code doesn't work. I connect to My SQL Server. and
>'StartDate' is the name of textbox. it forms 07/10/2006
>Thus, I receive two dates as $StartD and $EndD.

07/10/2006 is NOT the date format that MySQL uses. MySQL wants
2006-07-10 or 2006-10-07, depending on what country's date format
07/10/2006 is intended to be.

If you wish to convert TO MySQL's date format, try str_to_date().
If you wish to convert FROM MySQL's date format to some other format,
try date_format().

 

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

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