S131 Filter Form

S131 Filter Form
<?php
include("config.php");

$sql = "SELECT DISTINCT(country) FROM regform";
    $result = $conn->query($sql);
$sqlc = "SELECT DISTINCT(city) FROM regform";
    $resultc = $conn->query($sqlc);
?>
<form method="GET" name="regform" action="searchadvance.php">
Mobile:<input type="text" name="mobile">
Country:<select name="country">
  
  <?php
        echo "<option value='select'>Select Country</option>";
        while($row = $result->fetch_assoc()) {
        echo "<option value=".$row['country'].">".$row['country']."</option>";
    }
  ?>
  
</select>
City:<select name="city">
<?php
        echo "<option value='select'>Select City</option>";
        while($rowc = $resultc->fetch_assoc()) {
        echo "<option value=".$rowc['city'].">".$rowc['city']."</option>";
    }
  ?>
  
</select>
<input type="submit">
</form>

<?php
$conn->close();
 ?>

Take Your Free Live Demo Class Now

Enter Your DETAILS BELOW

To Get Complete Information or We Will Call You

We Will Send You the Course Fees Details In Below Number

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

Enter Your DETAILS BELOW TO take

free demo class