Use PHP and MySQL DESCRIBE command to build checkbox and radio button menus dynamically?

If I were you I'd cache this into a template or use the php file as a generator, unless there are quite a few table that will be queried. What is the purpose of dynamically querying enum types? Ajax won't make it load any faster, probably even slower, but might allow you to load the first 10, then the second 10, etc., so the user sees it actually working, and can interact with it before it is done completely loading.

I wouldn't think loading time would be a big problem though.

The reason I need to build the menu from enum and set datatypes is that for at least the first two years of my application, these datatypes will expand, and there are too many of them (more than 30) to make it efficient to keep adding new ones in code. Adding them in the database and letting the code generate the menus dynamically will save LOTS of time.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions