CodeIgniter Forums
see active record sql - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: see active record sql (/showthread.php?tid=38458)



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();