Welcome Guest, Not a member yet? Register   Sign In
How to display SQL queries used?
#1

[eluser]IamPrototype[/eluser]
I know you can make these {command} by yourself and CodeIgniter already has the elapsed time command. But how can I display the number of SQL queries used? Smile
#2

[eluser]davidbehler[/eluser]
Code:
echo $this->db->query_count;
#3

[eluser]Colin Williams[/eluser]
Use the Profiler class
#4

[eluser]IamPrototype[/eluser]
Thanks a lot. Smile

Edit: Waow, that's a pretty neat feature, Colin! I didn't know you could do it like that. Smile




Theme © iAndrew 2016 - Forum software by © MyBB