Hi all,
I want to hold the IP Address of user/browser of my site, and in one of my page, one link is there, if user click on this link, the count variable increments to one by each click…
If the click is made already from the same IP address, it wont increase again and again, if user clicks more than once.
The IP address from which the click has originated, and
don’t increment the count from the same IP within 2 minutes.
A.) Create a function that can be used in any file and check the current link from the address bar with that in the database and then there IP and increment if there IP doesn’t exist
B.) Use Ajax on the link to send a quick value to a PHP script to increment the count for that page
Personally i would go with option a as its a lot less hassle and easier to manage