Current File : /home/inlingua/public_html/noida/icentex_noida/admin_fdOLD/invoice_customerSerch.php |
<?php
session_start();
ob_start();
// Include the database connection details
require('../dbConnection.php');
// Include common functions
require('../commonFunc.php');
// Include common functions
require('../globalVars.php');
// Include the table handler class
require('../dbHandler.class.php');
$dbObject = new dbHandler();
$dbObject->connect();
$query="";
$Type=$_REQUEST['cid'];
if($Type=="Name")
{
$query="SELECT CONCAT( firstName, ' ', lastName ) AS Name FROM ingl_admission a left join timesheet_location b on a.center_no=b.recNo WHERE b.location='".$_SESSION['branch']."' && a.status_delete =0 ";
}
else if($Type=="mobile")
{
$query="select a.mobile from ingl_admission a left join timesheet_location b on a.center_no=b.recNo where b.location='".$_SESSION['branch']."' && a.status_delete=0 ";
}
else if($Type=="Email")
{
$query="select a.email from ingl_admission a left join timesheet_location b on a.center_no=b.recNo where b.location='".$_SESSION['branch']."' && a.status_delete=0 ";
}
else if($Type=="ref_No")
{
$query="select a.ref_No from ingl_admission a left join timesheet_location b on a.center_no=b.recNo where b.location='".$_SESSION['branch']."' && a.status_delete=0 ";
}
else
{
$query="select a.* from ingl_admission a left join timesheet_location b on a.center_no=b.recNo where b.location='".$_SESSION['branch']."' && a.status_delete=0 ";
}
$result=mysql_query($query);
//$num=mysql_fetch_array($result);
while ($num=mysql_fetch_array($result))
{
echo"<pre>";
print_r($num[0]);//."|".$num['firstName']." ".$num['lastName']);
}
//exit;
//echo"".$num['address']."|".$num['firstName']." ".$num['lastName']."";
//print_r ("".$num['address']."|".$num['firstName']." ".$num['lastName']."");
?>