<?php 
include("conn.php"); 

$sql2="SELECT * FROM currency ";
$result2 = mysqli_query($conn,$sql2)or die( mysqli_error($conn));
$row2=mysqli_fetch_array($result2) ;
$currency=$row2['curency'];
 if(isset($_POST["employee_id"]))  
 {  
      $data=$_POST['employee_id'];
      $connect = mysqli_connect("localhost", "root", "", "resto");  
      $query = "SELECT * FROM inventory WHERE id = '".$_POST["employee_id"]."'";  
      $result = mysqli_query($connect, $query);  
      while ($row=mysqli_fetch_array($result)) {
          $item_name=$row['item_name'];
          $item_price=$row['price'];
          $unit=$row['unit'];
          $value=$row['unit_value'];
          $quantity=$row['quantity'];
          $date=$row['datein'];
          $supply=$row['supply'];
          $contact=$row['supply_contact'];
          $by=$row['by'];
          $text='';



 }  
}
 ?>
<?php include("common/head.php");?>
<div class="activate-itme  m-2">
     <h5 class="text-center" >Items Details</h5>
     <div class="items">
        <p><b>Item Name: <?php echo $item_name ?></b></p>
        <p><b>Item Price: </b><?php echo $currency."".$item_price  ?></p>
        <p><b>Item unit: </b><?php echo $unit  ?></p>
        <p><b>Item value:</b> <?php echo $value."".$unit ?></p>
        <p><b>Item Quantity:</b><?php echo $quantity  ?></p>
        <p><b>Date in:</b> <?php echo $date  ?></p>
        <p><b>Supplier:</b> <?php echo $supply  ?></p>
        <p><b>Suppleir Contact:</b> <?php echo $contact  ?></p>
        <p><b>Item Recieved by:</b></p>
     </div>
     </div>


   