Forum Moderators: coopster
i need some help, I need something that will track the "clicks" on each banner that is located on my web site. So everytime somebody clicks on a particular banner, that will record to some kind of a file, and then I can multiply that my $ amount :) and send the bill....
Thats all,
any Ideas?
Thank you,
-Fast4u
Alternately, if you are not familiar with AJAX, you could have it post to a redirection page (IE. Thank you for visiting our sponsers, you will be redirected in X seconds) and insert the code to increment on this page.
<a href="redirect.php?url=http://www.example.com"><img src="img.jpg" /></a>
And then in the redirect.php page, something like this:
#search database for $_GET['url'] and increment the clicks field
#change the location to go directly to the page:
header("Location: ".$_GET['url']);
Obviously the code will look differently, but that will give you a decent start :)
good luck
As both may well be bad for you.