Inserting choice in database table
The main issue with your code is that the form submission will always have the same value. This could be seen by debugging $_POST where you check if $_POST[‘submit’] was set. I set up a custom database table and added some dummy data. I think this more or less mirrors your setup. Here is the … Read more