Welcome Guest, Not a member yet? Register   Sign In
How to output SQL query? [SOLVED]
#1

[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();
#2

[eluser]johnwbaxter[/eluser]
http://ellislab.com/codeigniter/user-gui...iling.html

This may also be of a lot of use.




Theme © iAndrew 2016 - Forum software by © MyBB