Preserve Form POST Data Displaying Errors
I have a form that displays a group of drop-down lists using data from my MySQLi database for updating. My program edits the data and displays an error message for incorrect data. The program displays the error messages correctly. However, it displays the old data from the database rather than the incorrect data the user entered. I use your recordset code to query the database. However, I'm currently updating the database with my own SQL code and will use your update behavior once I solve this problem. My PHP code is attached. I can't believe how much time I've lost on this!