Answers for "codeigniter query builder 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 query builder last insert id"

Browse Popular Code Answers by Language