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;
Fork a Repo. A fork is a copy of a repository. Forking... read more
How to check laravel version: Step1: Find Application.php file in your app and... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set permissions 400... 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
Major Differences are: Git and Mercurial are the two most popular Distributed Version... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
Leave a Reply