Hi there, can someone help me out with a php hit counter where the hits are stored in a MySQL database. I have had a look at a few examples of this type of hit counter before but none of them are exactly what I want. First of all, i can connect to the database and access the right table im just not sure of the query i should use and how to show the right data. The problem that I am having is that the pages of my website are loaded by the different variables which I put into the URL, i.e. This opens the Programming text file and adds it into the main page window using the $page variable. Is it possible to use this variable with the hit counter? So that when someone goes to the Programming page, the code searches for the Programming record and updates the hit by one, and I also want this to happen for all the other pages respectively. Can someone help me out with the code I would use for this as I am stuck on the type of query to use and how to actually work out the right page and display the right pages record on that page of the site. Thanks for any help, Sam Clark