l'errore è che mysql_fetch_array() dà un numero doppio di rusultati
usa mysql_fetch_row()!
e poi perchè c'è sia un for che un while? non ne basta uno?