Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Add current date and time problem

phpMyEdit General     Add current date and time problem
Post new topic   Reply to topic    
 
homa     Joined: 18 Sep 2005   Posts: 5  
Post Posted: 2005-10-01 16:11
Back to top  Reply with quote     

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

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy