Jquery autosuggest not working
<p>Hey guys, I'm using jQuery's autosuggest plugin by using php to get the data. But it doesn't seem to work since I always get: No Results Found, even though I'm sure there are results:</p>

<p>Here's the php code:</p>

<pre><code>&lt;?php
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);

$input = mysql_escape_string($_GET["q"]);
$data = array();
$mysql=mysql_connect('localhost','***','***');
mysql_select_db('jmtdy');
$query = mysql_query("SELECT * FROM users WHERE username LIKE '%".$input."%'");
while ($row = mysql_fetch_assoc($query)) {
$json = array();
$json['value'] = $row['id'];
$json['name'] = $row['username'];
$data[] = $json;
}
header("Content-type: application/json");
echo json_encode($data);
?&gt;
</code></pre>

<p>And the script:</p>

<pre><code>&lt;script &gt;
$(document).ready(function () {

$("#suggestedfriend").autoSuggest("suggestedf.php");
});





&lt;/script&gt;
</code></pre>
