[FX.php List] How to add a current date to an edit

Larry Schultz schultzl at sbcglobal.net
Thu Jan 3 11:48:48 MST 2008


Thanks Steve and Leo,

This was exactly what I was looking for.

Much appreciated,
Larry



On Jan 3, 2008, at 9:43 AM, Steve Winter wrote:

> Hi Larry,
>
> If you add
>   $edit_result_edit->AddDBParam('dateField', date("m/d/Y"));
> To your query, then the field 'dateField' will end up with the date  
> set on
> the server (in my example in the format month/day/year, see  
> www.php.net/date
> for other options...
>
> Cheers
> Steve
>
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Larry  
> Schultz
> Sent: 03 January 2008 17:37
> To: FX.php Discussion List
> Subject: [FX.php List] How to add a current date to an edit
>
> I need  to update a date field in FM during an edit. I don't know the
> syntax  for this, and I would suppose there is a fx.php or php
> command/argument for this.
>
> The code I'm using for the "FMEdit" is:
>
> <?php
> $edit_result_edit = clone($PeritusFX);
> $edit_result_edit->layout = 'TranslatorEvaluationForWeb';
> $edit_result_edit->AddDBParam('-recid', $CurrentRecord);
> $edit_result_fields = array(
> 'TranslatorType'=>$_POST['TranslatorType'],
> 'Rating_Accuracy'=>$_POST['Rating_Accuracy'],
> 'Rating_Completeness'=>$_POST
> ['Rating_Completeness'],...........................
>
>
> All help is appreciated as usual.
>
> Larry
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list