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;
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
List of popular and most used search engines based on web research: ... read more
"There may be several other possible ways, but I know one simple... 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
In simple words, class is a user defined datatype. Which have its... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
One of the reasons why smart phones have become so popular is... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
Simple structure to pin the flow to developers mind for project IS ... read more
Leave a Reply