You are here: Re: Put today's date into a MySQL "date" formated field « PHP Programming Language « IT news, forums, messages
Re: Put today's date into a MySQL "date" formated field

Posted by Peter Boosten on 08/03/06 20:12

walterbyrd <walterbyrd@iname.com> wrote:
> My MySQL table has a field that is set as type "date." I need to get
> today's date, and insert it into that field. The default for that MySQL
> field is 2006-00-00.
>
> I know about the date() function. I have tried date("Y-m-d") and
> date("U"), neither worked. The date field was just filed with all
> zeros.
>
> Can anybody point me in the right direction?
>
> Thanx.
>

now()

Peter

--
http://www.boosten.org

Mail: peter at boosten dot org

 

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

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