I want to be able to monitor the number of impressions, the number of unique clicks, and be able to give stats per day.
For the unique clicks, I am thinking using cookies and storing the user's IP address.
Yea,This is very interesting topic for me now.becoz i'm developing an affiliate program similar to this in perl.
we can implement this in different ways..
what i'm planning to do is that after webmasters registering i'm going to generate an id(userid---you have already that) for that webmaster, plus i'll be giving him some html code.
that might be something like...
<a href="bannerscript.php?userid=30"><img src="yourgif.gif"></a>
after this taking impressions and clickings are very easy.i'm not going to use
cookies for tracking multiple click..
probably i may restrict the multple click updation with HTTP_ADDR variable and the current date.
I think you may need to include one more coulmn in this table..
i would suggest to include a field called users_remote_addr for tracking the user..so
you can restrict multiple clicks and impressions..
ok... smart way to implement this very quickly is that just see some free scripts..
and steel some ideas from that...
actully this is my initial thinkings i'll have to spend some free time for finding out a best logic for this...
www.jobxyz.com-IT Career Portal
"The fear of the LORD is the beginning of knowledge..."
[This message has been edited by Shiju Rajan (edited September 19, 2000).]