Welcome Guest, Not a member yet? Register   Sign In
What does $this->db->insert_id() return if the insert fails?
#1

[eluser]warpspasm[/eluser]
Hi Everyone

What does $this->db->insert_id() return if the insert fails?

Thanks!
#2

[eluser]Otemu[/eluser]
Hi,

See explanation below:

Quote:The ID generated for an AUTO_INCREMENT column by the previous query on success, 0 if the previous query does not generate an AUTO_INCREMENT value, or FALSE if no MySQL connection was established.




Theme © iAndrew 2016 - Forum software by © MyBB