I'm not familiar with functions, although I'm increasingly aware of how useful they are. Where does the function code sit on the page?
I've got a nice date display by using this:
<?php echo date('jS F Y h:i A', strtotime($row_rsEDITSTOCK['LEDProductUpdateDate'])); ?>
I've also got an form field (LEDProductUpdateDate), which is what saves to database, which displays the current date/time like so:
<?php echo date("Y-m-d H:i:s"); ?>
You mention passing that field value into the function. Is that done on submit of the UPDATE form?
My DataAssist Update form has this line:
$WA_fieldValuesStr = "".((isset($_POST["LEDstock"]))?$_POST["LEDstock"]:"") ."" . $WA_AB_Split . "".((isset($_POST["LEDProductUpdateDate"]))?$_POST["LEDProductUpdateDate"]:"") ."";
I'm not sure what I need to change in both the form field and UPDATE code, if you wouldn't mind helping out?
Thank you
NJ