To nie jest błąd, to zamierzone zachowanie mysql_fetch_array() https://us.php.net/manual/en /function.mysql-fetch-array.php
Możesz ustawić result_type lub możesz po prostu użyć mysql_fetch_assoc() zamiast. https://us.php.net/manual/en /function.mysql-fetch-assoc.php