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

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

 $query = "update supplier set name='$bname', unit='$unit',address1='$baddress1', address2='$baddress2', city='$bcity', state='$bstate',taxtype='$taxtype',eccno='$eccno',document_type='$document_type',groupcode='$groupcode',credit='$credit', country='$country', pin='$bpin', std='$bstd', telno='$btelno', fax='$bfax', email='$bemail', contact='$contact', gram='$bgram',  st='$bst', cst='$bcst',areacode='$areacode',tin='$tin',buyertype='$buyertype',despatch_from='$despatch_from',excise_duty='$excise_duty',type='$type' where record='$record1' ";
  mysql_query($query)  or   die(mysql_error());
 }

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

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

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

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

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