1. $ ROW = mysql_fetch_row ($ result );
Returns a regular array $ row. $ row [0] is the first element, $ row [1] is the second element, and so on...
The number of elements returned by mysql_num_fields ($ result.
2. $ ROW = mysql_fetch_array ($ result );
Returns an array $ row. For example:
The table structure is as follows:
Username | Password
-------------------------------------
Bourbon | ABC
Berber | EFG
Run $ ROW = mysql_fetch_array ($ result) for the first time. The result is as follows:
$ Row [0] = $ row ["username"] = "Bourbon"
$ Row [1] = $ row ["password"] = "ABC"
Run $ ROW = mysql_fetch_array ($ result) for the first time. The result is as follows:
$ Row [0] = $ row ["username"] = "Berber"
$ Row [1] = $ row ["password"] = "EFG"
3. $ ROW = mysql_fetch_object ($ result );
Returns an object description line. For example
Run $ ROW = mysql_fetch_object ($ result) for the first time. The result is as follows:
$ Row-> username = "Bourbon"
$ Row-> Password = "ABC"
Run $ ROW = mysql_fetch_object ($ result) for the second time. The result is as follows:
$ Row-> username = "Berber"
$ Row-> Password = "EFG"