How to print exact sql query in zend framework ?
Answer / Girish Kumar Arya
To print the exact SQL query executed by Zend Framework, you can use the `getLastQuery()` method of the database adapter and the `quoteEscapeString()` method for escaping special characters. For example: `echo $db->getDriver()->getConnection()->getLastQuery();`
| Is This Answer Correct ? | 0 Yes | 0 No |
Please write down a program to show the execution of the application?
What are the steps kept in mind while designing the zend_form?
I am a minor (under 18 years of age). Who should sign my cla?
How we can set routing in zend framework2?
Can we call a model in view?
What are plugins in zend framework?
What is being presented by the decorators?
Do you know what is the function lucene?
How to create object of model?
Why can’t zend_form render my file element without errors?
What is the major difference between zend_auth and zend_acl?
What is models in zend framework?