akuji36 Posted September 15, 2009 Share Posted September 15, 2009 I can view, delete and modify one record at a time thru form. How can I recieve multiple selections from a select query, modify many records at once, and delete many records thru this form? Link to comment https://forums.phpfreaks.com/topic/174376-shopping-cart-form-with-checkboxes/ Share on other sites More sharing options...
tekrscom Posted September 17, 2009 Share Posted September 17, 2009 Something along these lines should work for ya... <form> <input type="checkbox" name="Whatever[]" value="yourcheckboxvalue"> </form> $myArray['checkboxarray'] = $_POST; foreach ($_POST[checkboxarray]['whatever'] as $key => $value) { mysql_query("DELETE FROM yourTable WHERE yourColumn = '$value'"); } Link to comment https://forums.phpfreaks.com/topic/174376-shopping-cart-form-with-checkboxes/#findComment-919900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.