| Author |
Difference between mysql_fetch_array() and mysql_fetch_row()
|
Deepthi Tanguturi
Greenhorn
Joined: Sep 06, 2011
Posts: 17
|
|
|
Difference between mysql_fetch_array() and mysql_fetch_row()
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3793
|
|
http://www.php.net/manual/en/function.mysql-fetch-array.php
http://www.php.net/manual/en/function.mysql-fetch-row.php
|
 |
Nick Charles
Ranch Hand
Joined: Oct 09, 2011
Posts: 56
|
|
mysql_fetch_row is the same as mysql_fetch_array with MYSQL_NUM. That is, you get an array with a numeric index.
However, with mysql_fetch_array you can also specify MYSQL_ASSOC, in which case the array is indexed by the column names. And then there is MYSQL_BOTH where you can use either a numeric or column name index.
Using the links Matthew provide, look at how the examples differ for the two functions.
|
 |
 |
|
|
subject: Difference between mysql_fetch_array() and mysql_fetch_row()
|
|
|