How to get last executed query in PHP Codeigniter?
Example:
public function AddMethodNameHere() { $executeQQ = $this->db->get("your_table_name"); $results = $this->db->last_query(); echo "<pre>"; dump($results); exit; }
Final Results:
SELECT * FROM `your_table_name`
I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I’m a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.