Hey, Need help to find out how many times php script accessing mysql database during executing. Like script has so many functions inside which are using mysql database, so what I would like to find out when you run the script how many mysql queries does it execute.
easiest way I found is to add write to file increment by 1 but its very funny because you should go all over all scripts to add that line where mysql query present, any other options ?