Logo F2FInterview

Codelgnitor Interview Questions

Q   |   QA

Answer 1
Turn on profiling (part of the benchmarking class) - this will show the full detail of all the SQL queries for the page.

Answer 2
You can do this before your query:

$this->db->_compile_select();

.. and then this, once you’ve run the query:

$this->db->last_query();  

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: