File "getsubcategory.php"

Full Path: /home/krishnamexports/public_html/panel/pages/signup/getsubcategory.php
File size: 499 bytes
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8

<?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>';

	}

}

?>