<?php
require_once('functions.php');
$user=$_SESSION['user'];
	$level=$_SESSION['BACK OFFICE'];



							if (isset($_GET['id']))
							{
					 $dbc=mysqli_connect("localhost","juwakaco_231","@@!!jwaki#$%","juwakaco_pot");
						
						$id = $_GET['id'];
					//	$sal=$_GET['di'];
						$result = mysqli_query($dbc,("SELECT date FROM sales where session='$id'"));
						
						$row = mysqli_fetch_array($result);
					//	$id=$row["number"];
					//	$qty=$row["qty"];
						$date=$row["date"];
						//$pdesc=$row["description"];
					//	$price=$row["price"];
						//$vat=$row["vat"];
							//$cat=$row["category"];
							//	$minimum=$row["minimum"];
						//$pprice=$row["price"];
							//$buying=$row["buying"];
							//$comp=$row["company"];
						//$re=$row["reorder"];
						mysqli_close($dbc);
						}
						
						?>




<form action="edit_date.php" method="post">
<input name="m" type="hidden" value="<?php echo $id; ?>"/>

<? ECHO"<b>Date:<br />
<input name='d' type='text' value='{$row['date']}' size='60'/><br />";?>





<input name="submit" type="submit" value="Edit">
</form>
