« MySQL Table SearchFree Availability Calendar »

Banner and Link Click Counter

Price: FREE Version: 1.0
With this free Banner and Link Click Counter PHP script you can count how many times each link on your website is clicked. MySQL table is used to store information about all links and click count for each of them.

CREATE TABLE IF NOT EXISTS `banner_clicks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(250) NOT NULL,
`clicks` int(11) NOT NULL,
PRIMARY KEY (`id`)
)

Each link has unique ID which is used in the links you put on your website. Instead of creating an external link on your website like

<a href="http://www.google.com">Google</a>

you can just add http://www.google.com in the MySQL table and then use the ID for it to create a new link

<a href="click.php?id=1">Google</a>

Now when this link is clicked the click.php script will update the clicks count value for Google.com link and will redirect you to http://www.google.com

There is also a stats.php page which will show all the links in your MySQL database and click count for each of them.

37 Comments to "Banner and Link Click Counter"

Stephan April 4, 2013 at 4:02 pm | Reply

0

Download doesnt seems to work?
Cash advance March 26, 2013 at 8:41 am | Reply

0

Still, there are ways to take control of your finances as soon as you take off the cap and gown? Cash advance http://onlinecashadvanceking.com/ [url=http://onlinecashadvanceking.com/]Cash advance[/url]
Ashish Wadhwa March 18, 2013 at 4:54 pm | Reply

0

Usefull
karim March 16, 2013 at 3:37 pm | Reply

+1

download link not work . please send me another link to download. thanks
okenesia.com March 15, 2013 at 7:48 am | Reply

0

how to put his code where?
jayavel March 8, 2013 at 4:15 pm | Reply

0

thanks
deepak March 6, 2013 at 6:57 pm | Reply

+1

send the download link....
melvin February 21, 2013 at 6:40 am | Reply

+1

good script. download it
melvin February 21, 2013 at 6:28 am | Reply

+1

hey its very useful .... thanks
Naveen Kumar s January 8, 2013 at 2:52 pm | Reply

+1

NICE...... its useful


Please be polite and helpful and do not spam or offend others. We promise you will be treated the same way.

Log in your free account or if you still haven't joined our Webmaster Community Reward Program, you can create your free account now.

Posting tip:
if you use code in your comments please put it in these tags [php], [sql], [css], [js]
PHP code example: [php] echo date("Y-m-d"); [/php]

Thank you,
~ PHPJabbers team ~