ok

Mini Shell

Direktori : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/
Upload File :
Current File : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/selectclass.php

<?php

//select.php

include('../includes/dbconnection.php');

if(isset($_POST))
{
    $sectionid=$_POST['sectionid'];
    $classid=$_POST['classid'];
    $fy=$_POST['fy'];
$query = "SELECT * FROM tblstudent where section=$sectionid and class=$classid and academicyear='$fy'  ORDER BY id DESC";
$statement = $dbh->prepare($query);
if($statement->execute())
{
 while($row = $statement->fetch(PDO::FETCH_ASSOC))
 {
  $data[] = $row;
 }
 echo json_encode($data);
}
}

?>

Zerion Mini Shell 1.0