PHP - Showing data in array
<p>The following code is referenced in an autocomplete object I have on my page</p>

<pre><code>&lt;?php
require('json.php');
error_reporting(E_ALL);
mysql_connect("localhost", "root", "") or
    die("Could not connect: " . mysql_error());
mysql_select_db("timetable") or die("No such database");
$sql = sprintf("SELECT id,dsc FROM module WHERE dsc LIKE '%%%s%%'",
               mysql_real_escape_string($_REQUEST['term']));
$result = mysql_query($sql)
  or die(mysql_error());
$all = array();
while ($row = mysql_fetch_array($result))
    $all[] = array('value'=&gt;$row[1],'label'=&gt;$row[1]);
print json_encode($all);
?&gt;
</code></pre>

<p>The autocomplete is working fine but there is no option to then display the data. Can anyone see what I'm doing wrong</p>
