How do I display execution time of a MySQL query in PHP?
问题 I am working on a PHP application that takes queries in a text box and returns paginated results. As part of the application I want to report the running time of the query. Here is what I have done so far. I started off by enabling profiling in by directly entering in the text box and running the script: set global profiling = 1 Using the provided text box I enter the following query: select @@profiling And get: 1 Finally, I run the query as so: select * from log However, when I run the