07-05-2007, 09:13 AM
[eluser]awpti[/eluser]
Taken from the sample blog tutorial.
Does db->insert not kick off a NOW() function on DATETIME fieldtypes? Seems to always leave the value NULL.
Is there a way to get it to fire off NOW(), or do I need to format a string to pass with it?
Code:
function comments_insert() {
$this->db->insert('awNewsComments', $_POST);
redirect('/comments/'.$_POST['comments_news_id'].'/');
}
Taken from the sample blog tutorial.
Does db->insert not kick off a NOW() function on DATETIME fieldtypes? Seems to always leave the value NULL.
Is there a way to get it to fire off NOW(), or do I need to format a string to pass with it?