Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2006
    Tadley, UK
    Thanked 0 Times in 0 Posts

    Link Hit Counter


    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.


  • #2
    Regular Coder
    Join Date
    Sep 2005
    Thanked 0 Times in 0 Posts
    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.



    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts