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

#2
now, how to return insertID from this function?!


PHP Code:
public function insertAlbumData(array $data)
{
   $this->db->table('gallery_albums')
         ->insert($data);
   return 
$this->db->insertID();

You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Reply


Messages In This Thread
RE: return insert id from database insert function - by Leo - 04-21-2020, 05:00 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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