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;
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
A recent research report has revealed that more than 90% of all... read more
In simple words, class is a user defined datatype. Which have its... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
List of popular and most used search engines based on web research: ... read more
Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Class 'App\Http\Requests\Input' not found Laravel" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in C:\Server\nigix\www\mi\app\Http\Requests\RegistrationForm.php:33 read more
How to check laravel version: Step1: Find Application.php file in your app and... read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
Leave a Reply
You must be logged in to post a comment.