Current File : /home/inlingua/www/icentex/pg/student_exits.php
<?php 
require('../dbConnection.php');

// Include common functions
require('../commonFunc.php');

// Include common functions
require('../globalVars.php');

// Include the table handler class
require('../dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
$cid=$_REQUEST['CID'];
$type=$_REQUEST['type'];
 
$sqlQ = "SELECT  recNo,firstName,address FROM ingl_admission where $type='".$cid."' order by recNo desc limit 0,1";

$res=mysqli_query($conn,$sqlQ) or die();
$num=mysqli_fetch_object($res);
if($num->recNo !='')
{
echo $echovalue=$num->recNo.'|'.$num->firstName.'|'.$num->address;	
	
}else {
	echo $echovalue[0]=0;
}

?>