Mini Shell

Direktori : /home2/aravindar/public_html/admin/ajax/
Upload File :
Current File : /home2/aravindar/public_html/admin/ajax/get_subcourse.php

	<?php
/* Database connection */
include("../config.php");
$conn = dbconnect();
session_start();

$content_query1   = "SELECT * FROM tb1_ugcourses WHERE status = 1 ORDER BY course_id ASC";
  $content_res1 = mysqli_query($conn, $content_query1);
  ?>
  <option selected value="">Choose Course</option>
  <?php
  while($content_row1 = mysqli_fetch_object($content_res1))
  {
    $course_id =$content_row1->course_id ;
    $course_name=$content_row1->course_name;
?>
<option value="U<?php echo $course_id; ?>"><?php echo $course_name; ?></option>
<?php
}

$content_query1   = "SELECT * FROM tb1_pgcourses WHERE status = 1 ORDER BY pgcourse_id ASC";
  $content_res1 = mysqli_query($conn, $content_query1);
  ?>
  <?php
  while($content_row1 = mysqli_fetch_object($content_res1))
  {
    $course_id =$content_row1->pgcourse_id ;
    $course_name=$content_row1->pgcourse_name;
?>
<option value="P<?php echo $course_id; ?>"><?php echo $course_name; ?></option>
<?php
}
?>

Zerion Mini Shell 1.0