CodeIgniter Forums
see active record sql - 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: see active record sql (/thread-38458.html)



see active record sql - El Forum - 02-08-2011

[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?


see active record sql - El Forum - 02-08-2011

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