• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.