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

Posted by Pedro Graca on 09/27/25 11:37

John K top-posted (previous posts snipped):
> I have the date and time fields separate at the moment. this is what
> I'm trying to do...
>
>
> $dateMerge = $_POST['month']. " " . $_POST['day'] . ", " .
> $_POST['year'] ;
> $timeMerge = $_POST['Time_Hour'] . ":" . $_POST['Time_Minute'] .
> $_POST['Time_AMPM'];
>
> if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "gigAdd"))
> {
> $insertSQL = sprintf("INSERT INTO tbl_gigs (fld_gig_Title,
> fld_gig_Date, fld_gig_Time, fld_gig_Comments) VALUES (%s, %s, %s, %s)",
> GetSQLValueString($_POST['gigTitle'], "text"),
> date("Y-m-d", ($dateMerge)),

date("Y-m-d", mktime(0, 0, 0, $_POST['month'], $_POST['day'], $_POST['year'])),

> GetSQLValueString($timeMerge, "text"),
> GetSQLValueString($_POST['comments'], "text"));
>
> it's not working, the date is still messed up.

--
If you're posting through Google read <http://cfaj.freeshell.org/google>

 

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

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