• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please how can I get last insertedID on ci4

#1
I am currently building a new application using ci4.

I have been working with the user guide in the cause of the development. I have been finding it difficult to get the last insertedID after saving or inserting a data in my DB table. Please I need help ASAP. Tnk
Reply

#2
If you are using the model:
$this->getInsertID()
$model->getInsertID()

If you are using it without the model:
$this->db->insertID()
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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