<?php
    $rollno1 = $_REQUEST['id'];
    //$con = mysqli_connect("localhost","root","","hospital_management_software");
    include 'connection.php';
    if($rollno1!=="")
    {
        $query=mysqli_query($sql_con,"SELECT * FROM `student_course` where AdmissionNo='$rollno1'");
        $row = mysqli_fetch_array($query);
          $age = $row["CourseName"];

    }
    //$result = array("$sname", "$class", "$age", "$address", "$recomm_dr", "$date", "$time");
     $result = array("$age" );
    $myJSON = json_encode($result);
    echo $myJSON;
?>