Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB