CodeIgniter Forums

Full Version: Is there a way to see the query produced by Active record?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

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

El Forum

[eluser]keithics[/eluser]
what about

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

El Forum

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