Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter 4 query builder get inserted id

$query = $this->db->table($this->table)->insert($data);
return $query->resultID;
 
PREVIOUS NEXT
Tagged: #codeigniter #query #builder #inserted #id
ADD COMMENT
Topic
Name
5+7 =