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;
$this->session->mark_as_flash('item'); # Version 3.x only $this->session->mark_as_flash(array('item', 'item2')); # Version 3.x only Array to... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set permissions 400... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
List of popular and most used search engines based on web research: ... read more
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
While Google is quite generous in giving each user a lot of... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
As per official bootstrap documentation about "sr-only CSS class":
Simple structure to pin the flow to developers mind for project IS ... read more
Leave a Reply
You must be logged in to post a comment.