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;
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
How to check laravel version: Step1: Find Application.php file in your app and... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
This can be achieved using a single query with join. We can... read more
List of popular and most used search engines based on web research: ... 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
Leave a Reply