Tuesday, 25 September 2012

How to print Query in codeigniter

Sometimes we will not get expected results after a DB operation. CodeIgniter provides a feature to print the query statement. statement of last executed query. we can manually check and find the error

                                           $this->db->last_query();                                                                          

using echo you can print the query.

No comments:

Post a Comment