tieni, copiato dal manuale di php on line e tradotto con google, quindi non in italiano correttissimo, se hai dubbi e capisci l'inglese qui trovi tutte le risposte^^
http://php.net/manual/en/function.mysql-fetch-array.php
[Cito]
Restituisce un array di stringhe che corrisponde alla riga caricata o FALSE se non ci sono più righe. The type of returned array depends on how result_type is defined. Il tipo di matrice restituita result_type dipende da come è definito. By using MYSQL_BOTH (default), you'll get an array with both associative and number indices. Utilizzando MYSQL_BOTH (default), si otterrà un array associativo con entrambi gli indici e numeri. Using MYSQL_ASSOC , you only get associative indices (as mysql_fetch_assoc() works), using MYSQL_NUM , you only get number indices (as mysql_fetch_row() works). Usando MYSQL_ASSOC, si ottiene solo gli indici associativi (come mysql_fetch_assoc () funziona), utilizzando MYSQL_NUM, si ottiene solo il numero degli indici (come mysql_fetch_row () funziona).
If two or more columns of the result have the same field names, the last column will take precedence. Se due o più colonne del risultato hanno gli stessi nomi di campo, l'ultima colonna avrà la precedenza. To access the other column(s) of the same name, you must use the numeric index of the column or make an alias for the column. Per accedere alle altre colonne (s) con lo stesso nome, si deve usare l'indice numerico della colonna o creare un alias per la colonna. For aliased columns, you cannot access the contents with the original column name. Per le colonne alias, non è possibile accedere ai contenuti con il nome della colonna originale.
[/CITO]

Rispondi quotando