Server Side Code
You can use several server side technologies to process the hits most of which are beyond the scope of this article. I would suggest, depending on the server you use, either going with ASP or PHP. Here is some pseudo-code in no particular language that represents how to process the hits on the server. Pseudo-code is human friendly code that can represent a computer programming language. This is what happens when the file is called on the server
connect to the database
open the hit count log table
read the current hit count
increment the current hit count by 1
save the new hit count back into the hit count log table
memorize he new hit count
close the hit count log table
disconnect from the database
insert the memorized new hit count into the specified HTML format text to read...
There are<br /><span>new hit count</span><br />this month
send the specified HTML formatted text back to the user's web browser
That is all there is to creating HTML counter code for a Website Hit Counter. Be sure to also check out this article on HTML counter code as well as these other free web design elements.