i've been playing half the day with trying to get php to delete rows when a
checkbox is checked.

i have a page that pulls all the data from db in a table. one row contains
checkboxes. i want it so that whereever a checkbox is checked and then
submit, all the selected rows will be deleted.

//get results from db
while($row = mysql_fetch_array ($result)) {
<td><input type="checkbox" name="delete" value="<?php print($row[id]);

what's the proper function i should write for this?
also, can i put the function on the same page without useing SWITCH?
i'm trying to minimize the number of files i have.

thanks in advance for any help.

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to