<?php
mysql_connect("localhost","root","");
mysql_select_db("mkdb");
$term=trim(strip_tags($_GET['term']));
$qstring="SELECT * FROM mk_project WHERE dscription LIKE '".$term."%'";
$result=mysql_query($qstring);
while($row=mysql_fetch_array($result)){
$row['value']=htmlentities(stripslashes($row['dscription']));
$row['dscription']=(int)$row['dscription'];
$row_set[]=$row;
}
echo json_encode($row_set);
?>