You are here: Re: Inserting Current date and time into MySQL database using PHP « All PHP « IT news, forums, messages
Re: Inserting Current date and time into MySQL database using PHP

Posted by J.O. Aho on 08/06/06 18:42

mpar612@gmail.com wrote:
> Is there a way to
> insert the date time into the database using the date and time from the
> users machine rather than the servers machine?

Use javascript to fill a input field with the current time/date when pressing
the submit button.


> Also, is there a way to reformat a date retrieved from a MySQL date
> field using PHP? Just curious.

See:
http://www.php.net/manual/en/function.strtotime.php
http://www.php.net/manual/en/function.date.php

alternative:
http://www.php.net/manual/en/function.explode.php
http://www.php.net/manual/en/function.mktime.php
http://www.php.net/manual/en/function.date.php


//Aho

 

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

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