<?php include("../../include/dbconnect.php"); ?>

<body background="blater01.gif" topmargin=0>
<?

if ( isset($submit) && $submit == "Update")
{
     $query ="update product set bcode ='$bcode',prodcode='$prodcode',drawing_no='$drawing_no',labour_rate = '$labour_rate',tariff='$tariff',cust_prodcode='$cust_prodcode',groupcode ='$groupcode',firstsub='$firstsub',application='$application',machinery='$machinery',material='$material',subcontract='$subcontract',finish='$finish' where record ='$record' ";

 mysql_query($query) or die(mysql_error());

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

  $query = mysql_query("delete from product where record='$record' ") or die(mysql_error());

}

?>
<center>
<h2><b>The Product details are updated </b></h2>
<br>
<br>

<h4><a href="view.php">View Products</a></h4></center>


<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
