This is how i put my information from the database in a array:
$sql = "SELECT city, read FROM location";
$info = mysql_query($sql);
$read = array();
while ($row = mysql_fetch_assoc($info)){
$read[] = $row;
}
This is a piece of the output of $read
(there are 40 city`s in the table):
Array ([0] => Array ([city] => New York [read] => false) [1] => Array ([city] => Paris [read] => true ))
Now I want to check if the read value of a city is true then echo something.
I don`t know how to do this do I need a for loop or just a if statement?
Can someone help?