SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast azuranz's Avatar
    Join Date
    Sep 2005
    Location
    Bermuda Triangle
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Counting MySQL queries executed on a page & echoing them?

    Hi there.

    In response to the other thread about speeding up php, I'm looking to reduce the number of mysql queries on my page.

    Just wondering if...

    anyone knows a function for php or script that counts how many mysql_query() are executed on the page

    & also, of one which echoes the queries executed out? So you can see what the queries executed are etc.

    cheers!
    azuranz
    Confucius says... man who fight with wife all day, get no piece at night

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    Have a look at: http://onaje.com/php/article.php4/35 for a quick tutorial
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •