I'm working on a forum with at least 15 sections. I built an Ad management system that allow users to run their own Ad campaigns and place Ads on any of the sections that best suits their target audience.
I have created in the database a table named sections with the following fields:
Section_id, section_name, ad_rate
I have inserted the various section names into the database. I have also inserted an estimated Ad rate for each of the sections.
However, I don't want the Ad rates to be fixed. I want them correlated with traffic coming to that particular section.
Please I need an example approach (preferably in PHP) on how to design a rate algorithm that correlates the fixed Ad rate with the traffic levels.