greetings to all,
all this while, i've been using is_array() to update database with selected checkboxes..
now, i'm trying to reverse it.
Situation
None of checkboxes are checked. One is check, so i could
UPDATE the_table SET accept = 'Yes' WHERE apl = '$accept[$b]'";
Situation [II]
There were 5 checked checkboxes. i uncheck one (leave it to 4). and i want that uncheck box being updated to
UPDATE the_table SET accept = ' ' WHERE apl = '$accept[$b]'";
while the rest remain unchanged.
How is this possible?
Any help is much appreciated.