Skip to content
Advertisement

Tag: codeigniter

How to print SQL statement in codeigniter model

I have a sql statement in my model, I then say My query always fails, how do I get php to print the exact sql statement being sent to my database? And display that on my php view, page Answer To display the query string: To display the query result: The Profiler Class will display benchmark results, queries you have

Advertisement