Answers for "codeigniter builder get last insert id"

PHP
5

return last insert id in codeigniter

$id = $this->db->insert_id();
Posted by: Guest on August-26-2020
0

codeigniter 4 query builder get inserted id

$query = $this->db->table($this->table)->insert($data);
return $query->resultID;
Posted by: Guest on December-12-2020

Code answers related to "codeigniter builder get last insert id"

Browse Popular Code Answers by Language