<?php include("../../include/dbconnect.php"); 
echo "$enqrefdt";


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


   $result=mysql_query("update toolscost set cost_refno='$cost_refno',  rawdraw='$rawdraw', rawoffer='$rawoffer', rawsize='$rawsize', rawwgt='$rawwgt', rawrate='$rawrate', rawqty='$rawqty', toolslife='$toolslife', blanktxt='$blanktxt', blankval='$blankval', pierctxt='$pierctxt', piercval='$piercval', formtxt='$formtxt', formval='$formval', blendtxt='$blendtxt', blendval='$blendval', tools1txt='$tools1txt', tools1val='$tools1val', tools2txt='$tools2txt', tools2val='$tools2val', procstriptxt='$procstriptxt', procstripval='$procstripval', procblanktxt='$procblanktxt', procblankval='$procblankval', procburrtxt='$procburrtxt', procburrval='$procburrval', procpiertxt='$procpiertxt', procpierval='$procpierval', procformtxt='$procformtxt', procformval='$procformval', procbendtxt='$procbendtxt', procbendval='$procbendval', procflattxt='$procflattxt', procflatval='$procflatval', prochardtxt='$prochardtxt', prochardval='$prochardval', procfinishtxt='$procfinishtxt', procfinishval='$procfinishval', procinstxt='$procinstxt', procinsval='$procinsval', tlcost='$tlcost', rawcost='$rawcost', processcost='$procsscost', admnexp='$admnexp', remarks='$remarks', appby='$appby', cost_refdt='$cost_refdt' where record='$record'") or   die(mysql_error());
   
    $result1=mysql_query("update enquiry set tools_cost='$tlcost' where record='$record'") or   die(mysql_error());
		
}
elseif (isset($submit) && $submit == "Delete")

{
$result=mysql_query("delete from toolscost where record='$record'") or die(mysql_error());
 $result1=mysql_query("update enquiry set tools_cost='$tlcost' where record='$record'") or   die(mysql_error());
		

}

?>
<meta http-equiv="refresh" content="0 url=index.html">

