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

Browse Popular Code Answers by Language