i want to get variable called #test from url and i want to show json results from database
its showing wrong results, this is the url am passing variable called #test like this
http://myinnos.in/read_all_filter_feed.php?filter=#test
this is my php code to get data from url and parsing JSON
<?php
header('Content-Type: application/json');
include("../db_config.php");
$linklist=array();
$link=array();
$filter=$_GET['filter'];
$percentage = "%";
$qr=mysql_query("
SELECT * from test where message LIKE '$percentage.$filter.$percentage'") or die(mysql_error());
while($res=mysql_fetch_array($qr))
{
$link['id']=$res['id'];
$link['name']=$res['name'];
array_push($linklist,$link);
}
//print_R($linklist);
echo json_encode($linklist);
?>