CodeIgniter Forums
Is there a way to see the query produced by Active record? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Is there a way to see the query produced by Active record? (/thread-36391.html)



Is there a way to see the query produced by Active record? - El Forum - 11-30-2010

[eluser]mikekiche[/eluser]
All is in the title.

Is there a function like
$query->produced_query(), to see what active record wrote?
Thanks


Is there a way to see the query produced by Active record? - El Forum - 11-30-2010

[eluser]keithics[/eluser]
what about

echo $this->db->last_query();


Is there a way to see the query produced by Active record? - El Forum - 11-30-2010

[eluser]mikekiche[/eluser]
thanks That's perfect.