Initial commit

This commit is contained in:
melzubeir
2017-05-26 15:17:48 +04:00
commit 1f43248510
254 changed files with 72319 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
ob_start(); session_start();
include("includes/connect.php");
//sleep( 3 );
// no term passed - just exit early with no response
if (empty($_GET['term'])) exit ;
$q = strtolower($_GET["term"]);
// remove slashes if they were magically added
if($q)
{
$query=mysql_query("select id,mediaOutlet from tbl_broad_media mediaOutlet LIKE '%".$q."%' ORDER BY mediaOutlet ASC ");
//echo "select distinct(cate_name) from tbl_category where status = 'A' and cate_name LIKE '%".$q."%'";
$result = array();
while($res_cust=mysql_fetch_array($query))
{
$customer=$res_cust['mediaOutlet'];
array_push($result,$customer);
}
}
echo json_encode($result);
?>