Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
panel
/
ajax
:
getsubcategory-20241115073701.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php session_start(); include('../../config/database.php'); $category_id = $_GET['category_id']; if(!empty($category_id)) { echo '<option value="">Select Subcategory</option>'; $sqlSubcategory = mysqli_query($cn,"select * from `tbl_subcategory` where `category_id`='".$category_id."'"); while($sqlSubcategoryData = mysqli_fetch_array($sqlSubcategory)){ echo '<option value="'.$sqlSubcategoryData['id'].'">'.ucfirst($sqlSubcategoryData['name']).'</option>'; } } ?>