I have the following quite simple test PHP code that extracts the data and puts it into JSON formatted text.
I get the following error..
Fatal err
Use this one:
$result = mysql_query("SELECT * FROM listinfo"); $json = array(); $total_records = mysql_num_rows($result); if($total_records > 0){ while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $json[] = $row; } } echo json_encode($json);