Thanks Namida, i see your point about having bogus records on the database so I have decided to add them all in myself. THe only thing is that I can't figure out how to display the number of hits. At the moment I have this;
$query = "update counter set count = count + 1 where parameter =...
Hi there, I have it working, i replaced the Programming with $page and it works fine
update counter set count = count + 1 where parameter = '$page'
I am now wondering if it is possible to create a new record of $page if one doesnt exist. So when the page index.php?page=Programming then this...
Hi there, thanks for the reply. Can i ask about your statement you made,
update tablename set count = count + 1 where parameter = 'Programming'
Is this the query I would use? And also would I be able to replace 'Programming' with $page so that the counter works on all the pages of my site...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.