instead of mysql_fetch_array, you should probably use mysql_fetch_assoc.
mysql_fetch_array() fetches a row both as an enumerated array and as an associative array. If you only need the associative array, then you shouldn't really be fetching the enumerated array at all.
Note: Do always use the associative array. That way you can use columnnames so you always know which fields you are fetching, and the order of the columns nolonger matters:
for ex, look at these:
SELECT a,b FROM table;
SELECT b,a FROM table;
both queries fetch the same columns, but the order is reversed. If you fetch the columns by name you will get the correct values, but if you fetch them by 'number', they will also be in reverse order. This get's very nasty if when you have 35 queries on 7 tables with 24 fields each...