<?php include("parent/callMe.php"); ?>

<?php
$id=$_REQUEST['branch'];


$sessionIDs=$_SESSION['current_session'];
$query="SELECT std.student_id,std.first_name,std.last_name,std.candidate_roll_no,std.ref_no,std.cell_no,std.class_id,std.section_id,std.family_code,std.session_id,cls.class_id,cls.Class_Name,sec.section_id,sec.section_name FROM edu_student_details as std, edu_class_config as cls, edu_adm_section_detail as sec where std.branch_id='$id' and std.status='0' and std.session_id='$sessionIDs' and std.class_id=cls.class_id and std.section_id=sec.section_id";
  $students_data = $m->query($query);
   
 //echo "<pre>"; print_r($students_data); echo "</pre>";
    
 echo json_encode($students_data);
?>

   
