Is $this->db->insert_id() safe ? |
[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.
[eluser]osci[/eluser]
$this->db->insert_id() uses mysql_insert_id(). Take a look at the notes there.
[eluser]CroNiX[/eluser]
Two people will never be inserting data on the same mysql resource link at the same time. |
Welcome Guest, Not a member yet? Register Sign In |