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



							if (isset($_GET['id']))
							{
					 $dbc=mysqli_connect('localhost','dhdogzbe_dubo','@@FRE@W21aswdubo!@@vB4546g@@!','dhdogzbe_dubois');
						
					//	$id = $_GET['id'];
						$sal=$_GET['di'];
						$result = mysqli_query($dbc,("SELECT * FROM x_report WHERE  id='$sal'"));
						
						$row = mysqli_fetch_array($result);
						$id=$row["id"];
						$type=$row["type"];
						$amnt=$row["amount"];
						//$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_xx.php" method="post">
<!--<input name="m" type="hidden" value="<?php //echo $id; ?>"/>-->
<input name="gg" type="hidden" value="<?php echo $sal; ?>"/><br />
<? ECHO"<b>Transaction Type:<br />
<input name='typ' type='text' value='{$row['type']}' size='60'/><br />";?>
<b>Amount:<br />
<input name="amnt" type="text" value="<?php echo $amnt; ?>" size="50"/><br />



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