get return last query in codeigniter code example
Example 1: codeigniter print last sql query
print_r($this->db->last_query());
Example 2: print last executed db query codeigniter
$this->db->last_query();
print_r($this->db->last_query());
$this->db->last_query();