This is a simple question for PHP users. The reason I couldn’t get the the exact difference between mysql_fetch_array() and mysql_fetch_row() in PHP is that I had been working much with Java.
Before I post this question here, I got some answers from Google but I found they’re somewhat confusing. Some of the links I found on the internet are as follows.
I couldn’t get the exact idea from the above answers. So actually what is the exact difference between them?
The documentation is pretty clear on this, have you looked at it ?
In summary
mysql_fetch_array( $result, MYSQL_ASSOC )=mysql_fetch_assoc( $result )mysql_fetch_array( $result, MYSQL_NUM )=mysql_fetch_row( $result )And
mysql_fetch_array ( $result )=mysql_fetch_assoc( $result )+mysql_fetch_row( $result )