the problem i got is that when i get information back from the database, i only get two raws not 4 . can someone help me out as i cant find any problems
this is the code
$sql = mysql_query("SELECT INCIDENT_ID FROM appreports WHERE POSTCODE = 'CF14' ");
while($row=mysql_fetch_assoc($sql))
{
$output[] = $row;
}
print(json_encode($output));
mysql_close();
this is the screenshot of the appreports table in database