include "connect.php";
$sql="delete from register where id='$id_del' ";
$result=mysql_db_query($dbname,$sql);
if ($result) {
$sql_del = "delete from customer where id = '$del_id';";
mysql_query($sql) or die(mysql_error());
echo"<script> alert('ลบข้อมูลออกจากระบบเรียบร้อยแล้ว');</script>";
header("Location: view.php");
} else {
echo "<h3>ไม่สามารถลบข้อมูลได้</h3>";
}
mysql_close();
?>