ok

Mini Shell

Direktori : /home/ngwcolle/public_html/LIBRARY-NGWC/admin/ajax/
Upload File :
Current File : //home/ngwcolle/public_html/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);   
  }
?>

Zerion Mini Shell 1.0