Re: Suggestions on how to do this

From: Date: Sat, 19 Aug 2000 19:04:35 +0000
Subject: Re: Suggestions on how to do this
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12600@lists.php.net to get a copy of this message
On Sat, 19 Aug 2000, CDitty wrote: > Here is an idea that I have been thinking about for a little while for use > on one of my sites. The concept is simple, but I cannot think of how to > accomplish this. Perhaps someone here can suggest something. > > On one of sites, the users must choose 1 of 4 banners before their entry > can be submitted. Currently, there are 20+ banners in the display pool. I > am choosing and displaying these 4 banners randomly. What I want to do is > to limit the times a banner is shown to a user for a given time. ie...user > should only see banner 1 twice in a 4 hour period. > > Has anyone already come up with something similar? I have seen it used in > banner programs, but can't figure out how they did it. Any suggestions on > how to accomplish this? > > TIA > > CDitty Well, you can use sessions to track a user around the site. Create a session table in a database and pass the session ID around with the user (in a cookie, or in the URL etc etc). Also store the time the user first connected to the database... As to keeping track of what banners the user has seen beats me. :) -- James Atkinson ----------------------------------------------------------------- James Atkinson 100world Technical Developer 512-1529 West 6th Avenue phone: +1-604-266-4490 ext.149 Vancouver, BC, V6J 1R1 fax: +1-604-742-1770 Canada email: james.atkinson@100world.com http://www.100world.com +---------------------------------------------------------------+ | This message may contain confidential and/or privileged | | information. If you are not the addressee or authorized to | | receive this for the addressee, you must not use, copy, | | discolse or take any action based on this message or any | | information herein. If you have received this message in | | error, please advise the sender immediately by reply e-mail | | and delete this message. Thank you for you cooperation | +---------------------------------------------------------------+

« previous php.general (#12600) next »