Welcome Guest, Not a member yet? Register   Sign In
Is $this->db->insert_id() safe ?


I was wondering if Is $this->db->insert_id() is safe ? I mean if two person insert data to a datebase in the same time.. can this cause any problem ? or it is linked to the result ressource ?


$this->db->insert_id() uses mysql_insert_id(). Take a look at the notes there.

Two people will never be inserting data on the same mysql resource link at the same time.

Theme © iAndrew 2016 - Forum software by © MyBB