This is my php script for fetching data from a db.
<?php
mysql_connect("host","user","pass");
mysql_select_db("db");
$q=mysql_query("SELECT * FROM examples ")or die(mysql_error());
$output[]=mysql_fetch_array($q,11);;
print(json_encode($output));
mysql_close();?>
I have renamed the host and so on for obvious reasons. Isn't this code supposed to get me all the rows from the examples table? It justs brings me the first row... Why that?