Right now i'm working on an admin panel for a site. the basic idea is the main page ha sa list of items like this..
Date - Title
Text goes here
The data is taken from a mysql db. There are multiple record from this database and the people who own the site want no more than 6 listings on the front page and the rest go to an archive.. but they also want to be able to select how many show on the main page so I can't just use LIMIT.
My question is, should I, in the admin panel, have a drop down box with options like "1, 2, 3, 4, 5, 6 etc" and store that in the database as well and then just use that data in the code to limit the number of items? Then whenever they change it it just updates that record in the database.
Is there an easier way? I would think there would be but i'm pretty new to this type of thing..
any help would be great