$host="localhost";
$user="root";
$pw="1234";
$db="mydb";
mysql_connect($host,$user,$pw)or die (" can't connect sever ");
mysql_select_db($db)or die("Can not Data Base");
$sql = "delete from sale_master Where code='$code' ";
$dbquery = mysql_db_query($db, $sql);