My SQL query is
"select stat_name, stat_count
from directors_stats
where (id = 1 or id =2)
order by id";
It returns two rows like stat1: 123
and stat2: 456
yet when I execute it in my php script as follows:
while($raw = mysqli_fetch_array($result))
{
print_r($raw);
}
The resulting array is
[0] => stat2
[stat_name] => stat2
[1] => 456
[stat_count] => 456
It looks like mysqli_fetch_array is returnng only the second row, but twice.