<?php
include "../../inc/inc.koneksi.php";
$kode	= $_POST['kode'];

$sql = mysql_query("SELECT * FROM salesman WHERE kode_sl= '$kode'");
$row	= mysql_num_rows($sql);
if ($row>0){
	$input = "DELETE FROM salesman WHERE kode_sl= '$kode'";
	mysql_query($input);
	echo "Data Kode salesman : $kode sukses dihapus";
}else{
	echo "Maaf, tidak ada";
}
?>