This is another counter script. It uses a database to store the counts
so it's really pretty easy to maintain multiple counts using this one file.
All you need to do is include it into your asp file and it'll do the
database work and print out the count for that file. It even automatically
adds records when a page is first hit!
If you're interested, a sample version of the database in
Access 2000 format
is available. If you don't have Access 2000 or want to use a different
database it's really simple to create the table yourself. The script
expects a table named hit_count with two fields: page_name and hit_count.
Page_name is a text field set to 255 characters (SQL Server varchar(255))
and hit_count is a long integer (SQL Server int). I've also set page_name
as the primary key.