Thanks for the advice, That's just a good work around but i need a permanent logicval solution for the same. I believe logic is same what you have for banners. fo eg in phpAdBanner you can specify the weight so accordingly out of x request the banner with higher weightage is displayed for a longer period. ----- Original Message ----- From: "Derek Scruggs" <derek@xxxxxxxxxxx> To: <php-objects@xxxxxxxxxxxxxxx> Sent: Sunday, October 23, 2005 7:40 AM Subject: RE: Hi Friends > > As an administrator suppose the newsweight is set to level 3 > > then i want this item should be displayed most out of all the > > request which means if that page is accessed 100 times in a > > day i want that content to be displayed for 60 times , items > > with level 2 to be 30 times and level to be 10 times. > > Check time() on every page request, and if the last digit is 0-5, query the > database WHERE weight=3, 6-8 is for weight=2 and 9 is for weight=1 > > Not perfect, but over time it should work out statistcally. > > -Derek > > > > > PHP Data object relational mapping generator - http://www.meta-language.net/ > Yahoo! Groups Links > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/