?
Path : /home/u949514618/domains/ieits.in/public_html/ |
Current File : /home/u949514618/domains/ieits.in/public_html/ajax.php |
<?php include_once("admin-login/include/connect.php"); ?> <?php $country=$_GET["country"]; $state=$_GET["district"]; if($country!="") { $res=mysqli_query($con, "select * from tbl_district where StateAutoID=$country"); echo "<select id='statedd' onchange='change_state()' class='form-control' name='district'>"; echo "<option>"; echo "Select District"; echo "</option>"; while($row=mysqli_fetch_array($res)) { echo "<option value='$row[AutoID]'>"; echo $row["DistrictName"]; echo "</option>"; } echo "</select>"; } if($state!="") { $res1=mysqli_query($con, "select * from tbl_centerreg where DistrictAutoID=$state"); echo "<table width='100%' border='0' cellspacing='8' cellpadding='8' class='stsfamilytable'> <tr> <th>Center Name</th> <th>Director Name</th> <th>Center Code</th> <th>District</th> <th>State</th> </tr>"; while($row1=mysqli_fetch_array($res1)) { echo "<tr>"; echo "<td>$row1[CenterName]</td><td>$row1[DirectorName]</td><td>$row1[UserName]</td><td>$row1[district]</td><td>$row1[state]</td>"; echo "</tr>"; } echo "</table>"; } ?>