Hi,
I’m trying to insert the current date into a mysql table and I’m doing something wrong.
$input = array(
'title' => $title,
'description' => $desc,
'tag' => $tag,
'attachment' => $file,
'max' => $max,
'date' => 'NOW()'
);
$this->db->insert('some_table',$input);
The other variables are well inserted. The date field is “datetime” and remains null. What am I missing? Thanks!
