Welcome Guest, Not a member yet? Register   Sign In
get insert id - SOLVED - this->db->insert_id()
#7

[eluser]mikemike[/eluser]
I don't think it works that way, I'm pretty sure it's linked to the DB connection resource.

So, in theory, you could make an insert at the top of your code, then have the page do something time consuming for 10 minutes and call the function at the bottom of the page. No matter if someone else inserted something in the mean time, the value of the function would be the same, because it's the last inserted ID of that connection.

In the years I've spent doing this stuff, I've never once had any issues with inserted id's - and I've worked on site with many hundreds of thousands of unique visits a day.


Messages In This Thread
get insert id - SOLVED - this->db->insert_id() - by El Forum - 10-18-2007, 11:10 AM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 10-18-2007, 11:30 AM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 11-22-2009, 02:30 AM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 11-22-2009, 03:32 AM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 11-23-2009, 04:44 PM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 04-13-2010, 07:49 AM
get insert id - SOLVED - this->db->insert_id() - by El Forum - 09-20-2010, 08:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB