mysql_fetch_array() returns an array with indexes, not field names.
You can pass the optional paramater MYSQL_ASSOC like so, mysql_fetch_array($result, MYSQL_ASSOC)
or you may use mysql_fetch_assoc() and that will return the array with field names.
Hope it helps.