<?php
header('Content-Type: application/json');
include "config.php";
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$id=$_REQUEST['id'];
$query="SELECT id, category_name, display_order, status, added_date FROM sp_institutions_category where id='$id'";
$sql=$db->prepare($query);
$sql->execute();
$row=$sql->fetch();
echo json_encode($row,TRUE);
?>