How to output SQL query? [SOLVED] |
[eluser]Frychiko[/eluser]
Hi, How can I output a SQL query to the screen? When I have errors in my query I like to output it on screen and paste it into phpmyadmin to debug. cheers! EDIT: Stupid me, it was in the documentation: echo $this->db->last_query();
[eluser]johnwbaxter[/eluser]
http://ellislab.com/codeigniter/user-gui...iling.html This may also be of a lot of use. |
Welcome Guest, Not a member yet? Register Sign In |