I need to be able to have some kind of query that will look at the names of all of the columns in a table and then make an array of those names. Then take those names and create form fields for every column name.
I need this because on the site I'm working on I am making the script but in the admin control panel I wrote it so it allows you to add columns to the users table. This means if he wants to add a spot in the user profile for phone number then he can do it in the admin panel. But the problem comes when I need to have users register.
How can I dynamiclly create these form fields from my mysql table? Does anyone know of a class or something I could use?