> 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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/