ok
Direktori : /home/importfo/public_html/theglobeinternational.com/admin/ |
Current File : /home/importfo/public_html/theglobeinternational.com/admin/get_subcat.php |
<?php include('config.php'); if(!empty($_POST["spare_id"])) { $id=intval($_POST['spare_id']); $query=mysqli_query($db,"SELECT * FROM spare_parts WHERE spare_id=$id"); ?> <option value="">Select Sub Category</option> <?php while($row=mysqli_fetch_array($query)) { ?> <option value="<?php echo htmlentities($row['s_id']); ?>"><?php echo htmlentities($row['spare_name']); ?></option> <?php } } ?>