- 27075 Downloads
- Price: FREE
Banner and Link Click Counter
- version 1.0
- price: free
- 4,785 downloads
description
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="https://www.google.com">Google</a>
you can just add https://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 https://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.
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="https://www.google.com">Google</a>
you can just add https://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 https://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.
download
To download Banner and Link Click Counter for FREE you need to login your account.
how to install
Follow these steps to run this Link and Banner click counter free php script1) open database.sql and import all the MYSQL queries in your database. There is a sample record added to the database too.
2) edit config.php file and set MySQL login details to connect to your database
3) using your web browser open example-page.html page and you will see a link. Once you click on that link you will be taken to PHPjabbers.com website home page and your click will be counted. Every time you click on a link the count will increase
4) using your web browser open stat.php and you will see a table with all links in the MySQL table and click count for each one
BurkeKnight
February 20, 2016 at 23:19 pm
Is there a way, on another page, to have a form submit the data to the database?
I'd like to have a simple form, so I don't have to go into phpMyAdmin all the time, to add links. Thank you!
nurmohammad
September 5, 2015 at 10:04 am
very nice.
rex
August 6, 2015 at 13:42 pm
nice
Den
May 13, 2015 at 19:44 pm
Thanks for the scripts. please help me with custom jquery popup login like the one on this site.
karthikkumar
April 9, 2015 at 09:38 am
It s very good scrip it working nice
Mohsin
February 10, 2015 at 21:32 pm
Thank You
Sagar Bhagwat
January 3, 2015 at 14:16 pm
i want contact form and inquiry form please
mayank
October 9, 2014 at 11:59 am
great
senthilkumar
September 30, 2014 at 15:52 pm
I want more file to download per day pls............
Firdose Basha
September 29, 2014 at 16:13 pm
please all to download more than one per day.