Current File : /home/inlingua/public_html/noida/icentex_noida/pg/ViewFee_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="";

$query=" SELECT a.student_name,c.ref_No,c.mobile,( select course_id from ingl_invoice_detail d where a.recNo=d.main_id limit 1 ) as course_id FROM ingl_invoice_main a left join timesheet_location b on
a.centre=b.recNo left join ingl_admission c on a.student_id=c.recNo  where 1=1 && b.location='".$_SESSION['branch']."'  ";

$result=mysql_query($query);
//$num=mysql_fetch_array($result);

while ($num=mysql_fetch_array($result))
{
echo"<pre>";
//print_r("".$num[0]."|".$num['1']."|".$num['2']."|".$num['3']." ");//."|".$num['firstName']." ".$num['lastName']);
//echo("".$num['0']."|".$num['1']."|".$num['2']."|".$num['3']." ");
print_r("".$num['0']."|".$num['1']."|".$num['2']."|".$num['3']." ");
}
//exit;
//echo"".$num['address']."|".$num['firstName']." ".$num['lastName']."";
//print_r ("".$num['address']."|".$num['firstName']." ".$num['lastName']."");
?>