I have read everything I could find on this forum and on the web about using checkboxes to delete records. I am using following code:
<input type=\"checkbox\" name=\"recID[]\" value=\"$id\">
Everything shows up fine, and pulls the records from the database. The problem is that I now need to delete the id in the database according to which checkbox is ticked. I find bits and peices of code and explanations all over the place, but everything I try causes errors, or doesn't delete the record although it APPEARS to run despite error checking.
Surely deleting a record from a database by a checkbox has been done before now, but I have found no working, complete examples.
I need to see a working example to understand how all the bits and pieces go together. Can anyone point me to a working example WITH CODE where the value of the checkbox is the value associated with the record ID?
Thanks,
Cindy