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

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