• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Codeigniter Transactions Does Not Let Me Return Insert ID

#2
Hi, I haven't tried it, but would something like this work?

PHP Code:
$this->db->insert($this->db->dbprefix 'post');
$last_insert_id $this->db->insert_id();

...
stuff in-between...

return 
$last_insert_id
Reply


Messages In This Thread
RE: Codeigniter Transactions Does Not Let Me Return Insert ID - by n2fole00 - 02-11-2017, 04:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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