\n"); echo ("alert('Item Type cannot be deleted!');\n"); echo ("\n"); } else { $num++; $mysqldel = "delete from masitemtype where fitemtype='$val'"; //delete any that match id $resdel = mysqli_query($mycon, $mysqldel); //send the query to mysql } } if ($num > 0) { //print the logs that were deleted echo ""; echo ("\n"); } } else { //no boxes checked echo ("\n"); } } ?>