I\'m having problems getting the date inserted properly into my database.
$date = date(\'m/d/Y h:i:s\', time());
I use this format, and, it
The best way to make it easier and efficient is this:
CREATE TABLE table_name ( field1, .. .. time_updated timestamp default current_timestamp )
Now, when you insert a row into table, you can skip this field (time_updated) as it will fill with current time as default value
time_updated