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

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

 $query = "update company set name='$bname', address1='$baddress1', address2='$baddress2', city='$bcity', state='$bstate', country='$country', pin='$bpin', std='$bstd', telno='$btelno', fax='$bfax', email='$bemail', contact='$contact', telex='$bgram',account_year='$account_year',  st='$bst', cst='$bcst',areacode='$areacode',tin='$tin',buyertype='$buyertype',account_year='$a_year' where record='$record1' ";
  mysql_query($query)  or   die(mysql_error());
 }

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

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

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

<center>
<h2><b>The Company details updated </b></h2>

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