• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
return insert id from database insert function

#1
I have this function for insert data to database:
PHP Code:
    public function insertAlbumData(array $data)
    {
       $this->db->table('gallery_albums')
            ->insert($data);
    

now, how to return insertID from this function?!
Reply


Messages In This Thread
return insert id from database insert function - by cilux - 04-21-2020, 04:20 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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