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



if ( isset($submit) && $submit == "Update")
{
   $result=mysql_query("update orders set order_no='$order_no',order_date='$order_date',schedule_no='$schedule_no',schedule_qty='$schedule_qty',schedule_date='$schedule_date',tentative_qty='$tentative_qty',delivery_dates='$delivery_dates',due_date='$due_date',order_qty='$order_qty',issued_qty='$issued_qty',balance_qty='$balance_qty',rate='$rate',open_order='$open_order',plan_month='$month',plan_year='$year',plan_type='$plan_type',inv_nos='$inv_nos',inv_date='$inv_date',app_qty='$app_qty',app_status='$app_status',rejected_qty='$rejected_qty',min_no='$min_no',return_date='$return_date',due_date5='$due_date5',due_date4='$due_date4',due_date3='$due_date3',due_date2='$due_date2',due_date1='$due_date1',part_qty5='$part_qty5',part_qty4='$part_qty4',part_qty3='$part_qty3',part_qty2='$part_qty2',part_qty1='$part_qty1',remarks='$remarks' where record='$record'") or   die(mysql_error());
}
elseif (isset($submit) && $submit == "Delete")

{
$result=mysql_query("delete from orders where record='$record'") or die(mysql_error());
}

?>
<table>
<tr><td colspan=4 align=middle>

<h4><a href="view_sele.php">View Order Details  </a>


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