When I try to print_r mysql_fetch_array of a sql query, I get this result.
Array ( [0] => 1 [id] => 1 [1] => 2011 [publish_date] => 2
instead of mysql_fetch_array use mysql_fetch_assoc. thats it.
Use mysql_fetch_assoc
Use mysql_fetch_assoc function
or
Use second parameter for mysql_fetch_array function: MYSQL_ASSOC