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

[eluser]Rushino[/eluser]
Hello,

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 ?

Thanks.
#2

[eluser]osci[/eluser]
$this->db->insert_id() uses mysql_insert_id(). Take a look at the notes there.
#3

[eluser]CroNiX[/eluser]
Two people will never be inserting data on the same mysql resource link at the same time.




Theme © iAndrew 2016 - Forum software by © MyBB