September 29, 200817 yr how do you create a counter that counts how many times a link have been clicked and show it below the Link? example: http:www.yahoo.com (120clicks!) i think it's with a php script..
September 29, 200817 yr Yea, I think PHP would be the way to go with MySQL to record everything. If there is a more lightweight option, i'm all ears, this reply is from the hip. I think you would just need a script that added 1 to a row everytime it was clicked and a script to query the DB for that number to return the counter.
September 30, 200817 yr You would need a few PHP scripts: 1) Each link would have to link to a PHP script such as out.php?url=www.yahoo.com 2) Within that script, you would setup the database connection with a MySQL database, query the database to see if the link already exists - if it does then increment the "clicks" value and if it doesn't, add a new record. 3) You would then need a function that can query the database and return the number of clicks for any given link. Dan
Create an account or sign in to comment