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;
Simple structure to pin the flow to developers mind for project IS ... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set permissions 400... read more
If you are a victim of Browser Modifier Virus ( malware ) Browser... read more
How to check laravel version: Step1: Find Application.php file in your app and... read more
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional... read more
In simple words, class is a user defined datatype. Which have its... read more
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
Leave a Reply