Re: FormatDateTime Revisited
- From: Pedro Graca <hexkid@xxxxxxxxxxx>
- Date: 17 Jan 2006 22:17:05 GMT
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>
.
- References:
- FormatDateTime Revisited
- From: John K
- Re: FormatDateTime Revisited
- From: Adam Plocher
- Re: FormatDateTime Revisited
- From: John K
- FormatDateTime Revisited
- Prev by Date: Re: Is this a good idea?
- Next by Date: Re: adding more fields to a form
- Previous by thread: Re: FormatDateTime Revisited
- Next by thread: Re: FormatDateTime Revisited
- Index(es):
Relevant Pages
|