Current File : /home/inlingua/public_html/noida/icentex/admin_fd/level_ajax.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();
$value=$_REQUEST['location'];
$lang = array("English"=>"14","French"=>"17","German"=>"18","Spanish"=>"19","Hindi"=>"20","IOL"=>"12","Eng- Workshop"=>"23");	
 $bcat=$lang[$value];
$sqlQuery = "SELECT * FROM `ingl_billing_main` WHERE `bill_category` ='".$bcat."' and recNo not in (1,98,100,99,101) and is_active='1'";
//echo $sqlQuery;
$result=mysqli_query($conn,$sqlQuery);
//$echovalue ="<select name='courseid'>";
$echovalue .="<option value=''>".'Select Level'."</option>";
while($row=mysqli_fetch_object($result))
{
$echovalue .="<option value='".$row->bill_details."'>".$row->bill_details."</option>";
}
//$echovalue .="</select>";
echo $echovalue;

?>