CodeIgniter Forums

Full Version: see active record sql
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]richzilla[/eluser]
Im trying to debug an active record function on my database. Is there anyway of seeing the sql that the active record function creates?

El Forum

[eluser]cahva[/eluser]
From the userguide:
Code:
$str = $this->db->last_query();