I use php/mysql.
I would like your thoughts on the best way to populate an html form SELECT drop down list which will contain around 20,000 items.
Hard coding them into the html, or calling them from a database?
Thing is, once they've been called from the database, and appear in the combo, when the page is refreshed, can I stop the database being queried again to save time? Could a session variable be the answer here?
I am just thinking out loud on this one, but I would welcome any second or third opinions on the best way to tackle this problem before I start.
Thanks
I would like your thoughts on the best way to populate an html form SELECT drop down list which will contain around 20,000 items.
Hard coding them into the html, or calling them from a database?
Thing is, once they've been called from the database, and appear in the combo, when the page is refreshed, can I stop the database being queried again to save time? Could a session variable be the answer here?
I am just thinking out loud on this one, but I would welcome any second or third opinions on the best way to tackle this problem before I start.
Thanks