imdead Posted July 2, 2008 Share Posted July 2, 2008 Hey Guys, I've Tried Many Times But I Cant Get It Right. How Would I Make A Script That Shows How Many Queries Where Executed On The Page Loaded Link to comment https://forums.phpfreaks.com/topic/112968-solved-xx-queries-executed/ Share on other sites More sharing options...
craygo Posted July 2, 2008 Share Posted July 2, 2008 start the page with a number and increment it every time a query executes. $i=1; $sql = "select * from something"; $res = mysql_query($sql) or die(mysql_error()); if($res){ $i++; } Then at the end of the page show results echo "there were $i queries run on this page"; There might actually be some function for this somewhere Ray Link to comment https://forums.phpfreaks.com/topic/112968-solved-xx-queries-executed/#findComment-580275 Share on other sites More sharing options...
imdead Posted July 2, 2008 Author Share Posted July 2, 2008 Hmm, I Can't Get This Method To Work? Link to comment https://forums.phpfreaks.com/topic/112968-solved-xx-queries-executed/#findComment-580301 Share on other sites More sharing options...
Jabop Posted July 2, 2008 Share Posted July 2, 2008 Then We Don't Know What You're Doing Wrong Because That Code Works From My Testing. Link to comment https://forums.phpfreaks.com/topic/112968-solved-xx-queries-executed/#findComment-580314 Share on other sites More sharing options...
imdead Posted July 2, 2008 Author Share Posted July 2, 2008 D/w Got It Working, Thanks craygo Link to comment https://forums.phpfreaks.com/topic/112968-solved-xx-queries-executed/#findComment-580319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.