Get the last executed Query in Codeigniter

The last executed query can be retrieved in Codeigniter using the function

$lastquery = $this->db->last_query();
echo $lastquery;

This will print the query in the format

/// SELECT * FROM sometable....
Previous Post
no-input-file-error-codeigniter

Get Custom Added Config Value in Codeigniter

Next Post
techrounder-default

PhoneGap Application Crashing Issue When Rotating the Device

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *