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

[eluser]Aken[/eluser]
Always use insert_id() directly after your query. Adding code in between could mess with the results.

Make sure the database table you're inserting into actually has a primary key. If it doesn't, insert_id() won't work.

Active Record is used by at least couple libraries (Session being the main one). It is not required to use in your application, but it is used by other CI components, yes.


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