ok
Direktori : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/ |
Current File : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/getrollno.php |
<?php include('../includes/dbconnection.php'); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if(!empty($_POST["id"])){ // Fetch state data based on the specific country $clid=$_POST['id']; $section=$_POST['section']; $type=$_POST['type']; // $type=$_POST['val']; $query=$dbh->query("SELECT * from tblsection where id='$section' and classid='$clid'"); $row = $query->fetch(PDO::FETCH_ASSOC); $response=$row; echo json_encode($response); } ?>