How to get last insert id in Codeigniter
$this->db->insert(‘users’, $data); # where $data is an array
$insert_id = $this->db->insert_id(); # insert_id() fucntion returns last insert id
return $insert_id;
$this->db->insert(‘users’, $data); # where $data is an array
$insert_id = $this->db->insert_id(); # insert_id() fucntion returns last insert id
return $insert_id;
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
While Google is quite generous in giving each user a lot of... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
Simple structure to pin the flow to developers mind for project IS ... read more
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
In simple words, class is a user defined datatype. Which have its... read more
As per official bootstrap documentation about "sr-only CSS class": Always add labels Screen readers... read more
Leave a Reply