View Full Version : Link Hit Counter

06-25-2006, 09:39 AM

Well i need some help. I am making a tutorial script: http://www.stevengibbons.com/tutorial/tmsdef.php

i want in a litle bar im making it to record the number of hits and display it, but i cant use a afilliate script becuase it would take to long to add the links, i want one that will be on the same row as the tutorial in my database and add one when people click on the title/ link to tutorial.
Thanks please provide me with whole code.


06-25-2006, 10:51 AM
You need to think about things yourself, or post in the paid work forum if you want full code. We are very happy to correct code etc. not do.

You would be looking at possibly having a database table of links with a hits field. You'd have to make all of your links go to a single page of your site, e.g. linkredirect.php?link=XXX where XXX is = to an ID number of the link in your table. You would then simply add one to the number in the table and use header("Location: http://linkhere.com"); to send the user to the other site.