<?php require_once('../Connections/lancrox.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<link href="../macss.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
  <div id="header">
    <div id="main">
      <div id="logo"></div>
      
     
    </div>
  </div>
  <div id="thebody">
    <div id="mainbody">
      <p></p> <?  
		$update = "update currentprice set price = '$_POST[price]', price2='$_POST[price2]', price3='$_POST[price3]', price4='$_POST[price4]' WHERE sn = '$_POST[dd]'";
	  $tine= time();
$update1 = mysqli_query( $lancrox, $update) or die(mysqli_error($GLOBALS["___mysqli_ston"]));

	$update2 = "INSERT INTO pricelog (items, datein, oldprice, price, users,op2,op3,price2,price3,price4,op4,a) values ('$_POST[items]','$today', '$_POST[oldprice]','$_POST[price]','$_POST[fullname]' ,'$_POST[op2]','$_POST[op3]','$_POST[price2]','$_POST[price3]','$_POST[price4]','$_POST[op4]','$_POST[a]')";
	  
$update3 = mysqli_query( $lancrox, $update2) or die(mysqli_error($GLOBALS["___mysqli_ston"]));?>
      <p>&nbsp;</p><script type="text/javascript">
window.location.href = 'change.php?code=<? echo $_POST[dd];?>';
</script>
    </div>
  </div>
</div>
</body>
</html>