Welcome Guest, Not a member yet? Register   Sign In
newbie active record question: show me the SQL!
#3

[eluser]Unknown[/eluser]
or ...

Code:
$this->db->last_query();

Returns the last query that was run (the query string, not the result). Example:
Code:
$str = $this->db->last_query();
Code:
echo $str;

// Produces: SELECT * FROM sometable....

ripped from the user_guide


Messages In This Thread
newbie active record question: show me the SQL! - by El Forum - 03-31-2008, 02:59 PM
newbie active record question: show me the SQL! - by El Forum - 03-31-2008, 03:07 PM
newbie active record question: show me the SQL! - by El Forum - 04-01-2008, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB