<?php
require("../connection.php");
include("../user.php");
$user_id=$_SESSION['user'];
$branch_id=$_SESSION['branch_id'];
$username=$_SESSION['user_name'];
$ho_access=$_SESSION['ha'];
$val=$_REQUEST['val'];
$no=$_REQUEST['no'];

$query=mysqli_query($con,"SELECT asset_id FROM `item_master` where category_id='$val' and status=0");

?>
<select class="form-control"  id="asset_code_<?php echo $no; ?>"  name="asset_code<?php echo $no; ?>" >
				<option selected disabled>Select Category</option>
				<?php while($category=mysqli_fetch_array($query))
				{ ?>
				<option value="<?php echo $category['asset_id'];?>"><?php echo strtoupper($category['asset_id']);?></option>
				<?php } ?>
				</select>