| Current Path : /var/www/html/mmishra/irp/ |
| Current File : /var/www/html/mmishra/irp/ajax.php |
<?php
//operator/index.php
require_once("../init.inc.php");
if($_GET['type'] == 'emp_code'){
$tbl = 'employee';
$result = mysql_query("SELECT name FROM $tbl where name LIKE '".strtoupper($_GET['name_startsWith'])."%'");
$data = array();
while ($row = mysql_fetch_array($result)) {
array_push($data, $row['name']);
}
echo json_encode($data);
}
?>