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!


You would have to create the recordset after the update if you wanted it to have the updated values. Just move the code that updates the database above the recordset code or more the recordset below the update and I think it will give you the result you are looking for. 
