I am using the PDO Database Abstraction library to make sure my code is portable. However, I now find that I need column information so I turned to the PDOStatement->getColu
It's more work but create the database with column names like vc_20_Last_Name. Then explode the the column name on "_". Position zero contains vc or VARCHAR. Position 1 contains the column width or 20. Position 2 and above contains Last and Name which is self explanatory. You now have the possibility to write a generic function to automatically build the HTML forms for INSERT, UPDATE and DELETE operations. You could pass parameters to exclude (or include if it's easier) fields that you don't / do want to appear. Write the code once and use it for ever. Tough luck if you are stuck with someone else's tables.