Now my client gave me an URL, which is a tracking code of some affiliate network. I need to implement that in my banner, so that when somebody click the tracking code will record it's click and it should take to particular address

I have seen this trick in flash banner.
Now I need to know the same trick in javascript or in html

And then in referer.php you retrieve the link using GET, increment a value in a table (something like 'referer_counter') with columns 'link' (string) and 'counter' (integer) that corresponds with the link and then automatically redirect (google how to do it) the visitor to the correct link.

PS: If it's a rotation banner, you need to change the href everytime a new image is loaded.

And then in referer.php you retrieve the link using GET, increment a value in a table (something like 'referer_counter') with columns 'link' (string) and 'counter' (integer) that corresponds with the link and then automatically redirect (google how to do it) the visitor to the correct link.

PS: If it's a rotation banner, you need to change the href everytime a new image is loaded.

~G

Thanx Graphix
I don't know php
So can you please post
coding here
of php page