Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/istore/
Upload File :
Current File : /var/www/html/mmishra/istore/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);
}

?>