It's unique for each row, i tried but it still fails to work. There seems to be a flaw in the logic.
every steps seems fine, but still data is not input into the database
Data is retrieved from the database as an array - that's okay
It's displayed on the screen - that's okay
The issue begins with the radio buttons, each now has a unique name using the appended app_no which is unique
Then person submits
A check is made to see if submit is clicked
Then the $output array pointer is reset to zero
Then a looop is made through the array
if $_POST field name == 1
then sql code is run to set the specified field to "Approved" based on "app_no" field value in database being equal to "app_no" value in the array being currently looped through
But still, it doesn't work. There is no database update and even the echo "WAS UPDATED" message doesn't show up, which means the "if" part doesn't run so the failure is before the "if" statement
Might this difference in quotation marks in the form
name="Choice_'.$info['app_no'].'"
and this difference in the if $_POST clause
['Choice_'.$info['app_no']]
be a contributing factor?