CodeIgniter Forums
Want to print out SQL Queries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Want to print out SQL Queries (/showthread.php?tid=45812)



Want to print out SQL Queries - El Forum - 10-06-2011

[eluser]Unknown[/eluser]
Hello there,

I was having some trouble running a SQL query and I after using the $this->db->$foo methods of writing the query I just want to double check it. Is there a way of doing that?

Also, this might not be a CodeIgniter issue but I wanted to insert a timestamp into the database when I update a record and I was having trouble with the mysql NOW() function. Any idea why?

Thanks,