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



Theme © iAndrew 2016 - Forum software by © MyBB