\n"); echo ("alert('agents cannot be deleted!');\n"); echo ("\n"); } else { $num++; include("mysql_db_connect.php"); $mysqldel = "delete from massupplier where fagencode='$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"); } } ?>