Welcome Guest, Not a member yet? Register   Sign In
insert_id not working
#3

[eluser]cPage[/eluser]
MySQL 5.0 Reference Manual

20.6.10.3. How to Get the Unique ID for the Last Inserted Row
If you insert a record into a table that contains an AUTO_INCREMENT column, you can obtain the value stored into that column by calling the mysql_insert_id() function.

Code:
//--CI
$this->db->insert_id()


Messages In This Thread
insert_id not working - by El Forum - 01-24-2013, 03:45 PM
insert_id not working - by El Forum - 01-24-2013, 04:44 PM
insert_id not working - by El Forum - 01-24-2013, 05:07 PM
insert_id not working - by El Forum - 01-24-2013, 08:39 PM
insert_id not working - by El Forum - 01-24-2013, 10:53 PM
insert_id not working - by El Forum - 01-24-2013, 11:00 PM
insert_id not working - by El Forum - 01-24-2013, 11:03 PM
insert_id not working - by El Forum - 01-24-2013, 11:44 PM
insert_id not working - by El Forum - 01-25-2013, 01:24 AM
insert_id not working - by El Forum - 01-25-2013, 02:33 AM
insert_id not working - by El Forum - 01-25-2013, 02:44 AM
insert_id not working - by El Forum - 01-25-2013, 03:14 AM
insert_id not working - by El Forum - 01-25-2013, 09:59 AM
insert_id not working - by El Forum - 01-25-2013, 11:35 PM
insert_id not working - by El Forum - 01-28-2013, 03:03 PM
insert_id not working - by El Forum - 01-28-2013, 03:08 PM
insert_id not working - by El Forum - 01-28-2013, 06:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB