
<?php
if(isset($_REQUEST['updatebtn'])){

     $id = $_POST['id'];
	 $num = $_POST['num'];
 $shipperadd = $_POST['shipperadd'];
 $receiveradd = $_POST['receiveradd'];
 $origin = $_POST['origin'];
 $package = $_POST['package'];
 $status = $_POST['status'];
 $destination = $_POST['destination'];
 $carrier = $_POST['carrier'];
 $shiptype = $_POST['shiptype'];
 $weight = $_POST['weight'];
 $shipmode = $_POST['shipmode'];
 $carefno = $_POST['carefno'];
 $product = $_POST['product'];
 $qty = $_POST['qty'];
 $paymode = $_POST['paymode'];
 $totalfrieght = $_POST['totalfrieght'];
 $exptdelvrydate = $_POST['exptdelvrydate'];
 $deptime = $_POST['deptime'];
 $pickdate = $_POST['pickdate'];
 $picktime = $_POST['picktime'];
 $comment = $_POST['comment'];	
	
	
	 
	$enter = mysql_query("update trackings set num='$num',shipperadd='$shipperadd',receiveradd='$receiveradd',origin='$origin',package='$package',status='$status',destination='$destination',carrier='$carrier',shiptype='$shiptype',weight='$weight',shipmode='$shipmode',carefno='$carefno',product='$product',qty='$qty',paymode='$paymode',totalfrieght='$totalfrieght',exptdelvrydate='$exptdelvrydate',deptime='$deptime',pickdate='$pickdate',picktime='$picktime',comment='$comment' where id='$id'");

if(!$enter){
	 echo ("query error" . mysql_error());
}else{
	  echo("<center> Update successful </center>");
}

	  }
	  
	 
	 



?>