I searched around on Google and here on the forum for a while, but could not find an answer to something I've been trying to figure out lately.
I am working on a blog type of project... using MySQL to store data that PHP eventually outputs.
My question is: is there any way (and if so, please direct me to how to do this,) to when displaying a form (for example: a blog's owner updating user information,) to automatically generate a form that can determine whether a form input item should be a text or a textbox... or if it should be an upload input, etc.
The reason for why I want to know if this is possible... is because it would make creating forms a lot faster and more efficient as the project progresses, and if someone ever had to add another category to one of the tables in the database, it would be able to be added automatically to a particularly form.
I was trying to find out also if there is a way to attach a text attribute/comment to table fields... that way, I would be able to assign a certain word to each field of a table to use for later, to tell the PHP code how to display each field in a form... but I haven't seen a way this can be done, looking through the MySQL docs.
Thanks for any help... and if this question is not explained very well, let me know and I can try to clarify a bit.