CodeIgniter Forums

Full Version: How to extract the query from db object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I'm building a conditions screen where the user can build sql via GUI.

After the user is done he will press on the test button and i'll build a query dynamically and

test it using

I also want to save the actual query after it has been verified (with the actual values instead of the question marks), is there a way to get it?


El Forum

[eluser]Bart Mebane[/eluser]
$sql = $this->db->last_query();