Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Delete multiple rows with PDO and checkboxes

$
0
0
<script>
	function setChecked(obj) 
		{
	
		var check = document.getElementsByName("sel_ids[]");
		for (var i=0; i<check.length; i++) 
		   {
		   check[i].checked = obj.checked;
		   }
	}
</script>

if (!empty($_POST['delete'])) {
$deleteIDs = array_filter(array_map('intval', $_POST['sel_ids']));

 


Viewing all articles
Browse latest Browse all 13200

Trending Articles