Loading…

How we can print SQL statement in codeigniter model?

You can use $this->db->last_query(); to display the query string.
You can use print_r($query); to display the query result.

Suggest An Answer

No suggestions avaliable!

Latest post from CodeIgniter Interview Questions

Ask Question