Welcome Guest, Not a member yet? Register   Sign In
Issues with $this->db->insert
#1

[eluser]awpti[/eluser]
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?


Messages In This Thread
Issues with $this->db->insert - by El Forum - 07-05-2007, 09:13 AM
Issues with $this->db->insert - by El Forum - 07-05-2007, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB