Welcome Guest, Not a member yet? Register   Sign In
Question about insert_id()
#1

[eluser]cPage[/eluser]
Is that right to get the last insert id by specifying the key , because i dont get any error when i do this :

Code:
$this->db->insert_id('id_customer');

#2

[eluser]CroNiX[/eluser]
It won't have any affect at all and is ignored. $db::insert_id() will return the last inserted ID made on that db connection regardless of key and is no different than just returning last_insert_id directly from mysql or whatever driver you're using (which is what it's doing)
#3

[eluser]cPage[/eluser]
thanks
#4

[eluser]p5systems[/eluser]
Hi,

This will work

$this->db->insert_id();




Theme © iAndrew 2016 - Forum software by © MyBB