<body background="blater01.gif" topmargin=0>
<?php include("../../include/dbconnect.php"); 

if ( isset($submit) && $submit == "Update")
{

 $query = "update buy set name='$bname', unit='$unit',address1='$baddress1', address2='$baddress2', city='$bcity', state='$bstate',taxtype='$ttype',eccno='$eccno',vendercode='$vendercode',state_code='$state_code',credit='$credit', country='$country', pin='$bpin', std='$bstd', telno='$btelno', fax='$bfax', email='$bemail', contact='$contact', state_code='$state_code',  gstin='$bst', cst='$bcst',areacode='$areacode',tin='$tin',buyertype='$buyertype' where record='$record1' ";
  mysql_query($query)  or   die(mysql_error());
 }

elseif (isset($submit) && $submit == "Delete")
{

$query = "delete from buy where record='$record1' ";

 mysql_query($query) or die(mysql_error());
}
?>

<center>
<h2><b>The Customer's details updated </b></h2>

<h4><a href="view.php">View Customers</a></h4></center>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
