I am working a library that needs to be fed sql queries as strings todo its job.
I am using CodeIgniter and the active record implementation of their database class.
I know that I can echo the SQL statement like so... But I only want to generate this query, not execute it.
echo $this->db->last_query();
Any help accomplishing this would be great!