alert('Customer details Added Successfully');window.location.href='view-customer.php';";
}
}
if(isset($_POST['removegetid2']))
{
$removegetid2=$_POST['removegetid2'];
$delete="DELETE FROM `customer` WHERE id='$removegetid2'";
$run=mysqli_query($conn,$delete);
if($run)
{
echo "";
}
}
if(isset($_POST['updcustomercode']))
{
$updcustomercode=$_POST['updcustomercode'];
$customerupdateid=$_POST['customerupdateid'];
$updgstno=$_POST['updgstno'];
$updcompanyname=$_POST['updcompanyname'];
$updcustomerphoneno=$_POST['updcustomerphoneno'];
$updcustomeremailid=$_POST['updcustomeremailid'];
$updcompanyupdress=$_POST['updcompanyupdress'];
$updvehicleno=$_POST['updvehicleno'];
$updcusstate=$_POST['updcusstate'];
$updpincode=$_POST['updpincode'];
$date=date("Y-m-d");
$storevehicleno=str_replace(",","@@@@",$updvehicleno);
$update="UPDATE `customer` SET `code`='$updcustomercode',`name`='$updcompanyname',`address`='$updcompanyupdress',`place`='$updcusstate',`pincode`='$updpincode',`phono`='$updcustomerphoneno',`emailid`='$updcustomeremailid',`gstno`='$updgstno',`date`='$date',`vehicleno`='$updvehicleno' WHERE '$customerupdateid'";
$run=mysqli_query($conn,$update);
if($run)
{
echo "";
}
}
?>