Hi friends,
I have a DATETIME field (bDate) in my database . When a record is added I want to write current date and time in it.
This is my code:
$opts['fdd']['bDate'] = array(
'name' => 'BDate',
'input' => 'H',
'options' => 'ACPVDFL',
'select' => 'T',
'default' => date('Y-m-d H:i:s'),
'sort' => true
);
The error message is:
Warning: array_keys(): The first argument should be an array in D:\projects\blog\phpMyEdit.class.php on line 2614
Line 2614: $changed = array_keys($oldvals);
Is the error related to the date and time format? What is the suitable format for DATTIME field? And finally are there any other solutions?
Regards,
Homa
|