Welcome Guest, Not a member yet? Register   Sign In
Active Record "insert_id" MySQL
#2

[eluser]Chathuranga Tennakoon[/eluser]
Hi Mike4,


just try below code and please let me know what happens...

Code:
if($this->db->affected_rows() > 0)
{
     $insert_id = (string)$this->db->insert_id();
     $this->session->set_userdata(array('antispam_article' => $current_time));
     return $insert_id;
}


Messages In This Thread
Active Record "insert_id" MySQL - by El Forum - 03-21-2012, 01:37 AM
Active Record "insert_id" MySQL - by El Forum - 03-21-2012, 03:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB