D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
ajax
/
Filename :
search-course-data.php
back
Copy
<?php error_reporting(0); include("../include/config.php"); $course_id = $_POST['course_id']; if(!empty($_POST["course_id"])){ $query = "SELECT * FROM `library_subject` WHERE `library_id` = '$course_id' "; //echo $query; die; $result = mysqli_query($conn, $query); $count=mysqli_num_rows($result); // Generate HTML of state options list if($count){ $option=""; $option .="<option value='' selected='' disabled=''>-- Select Library Index --</option>"; while($row = mysqli_fetch_assoc($result)) { $lib_index_title =$row['lib_index_title']; $lib_index_id =$row['id']; $option.="<option value='$lib_index_id'> $lib_index_title </option>"; } echo $option; }else{ echo '<option value="">Library Index not available</option>'; } } else{ echo '<option value="">Library Index not available</option>'; } ?>