Question : codeigniter 4 query builder get inserted id
Answered by : friendly-flamingo-hy1tf65rghpi
$query = $this->db->table($this->table)->insert($data);
return $query->resultID;
Source : | Last Update : Sat, 19 Dec 20
Answered by : friendly-flamingo-hy1tf65rghpi
$query = $this->db->table($this->table)->insert($data);
return $query->resultID;
Source : | Last Update : Sat, 19 Dec 20