?
Path : /home/u949514618/domains/karmaasrconsultants.com/public_html/admin/ |
Current File : /home/u949514618/domains/karmaasrconsultants.com/public_html/admin/ajax1.php |
<?php include("db.php"); $userid=$_GET["underid"]; if($userid!=""){ $res=mysqli_query($con,"select * from department where program_id=$userid"); echo "<lable for='department' class='col-sm-2 control-label'>Select Department</lable><div class='col-sm-10'><select id='departmentdd' name='department' class='form-control'><option value='0'>Select Department</option>"; while($row=mysqli_fetch_array($res)){ $id=$row["id"]; echo "<option value='$id'>"; echo $row["title"]; echo "</option>"; } echo "</select></div>"; } ?>