• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.