PHP MySQL: mysql_fetch_array() FunctionTag: mysql, database, mysql_fetch_array Category: PHP Databasepost: 02 Mar 2008 read: 1,708 php mysql basic step by step tutorial - part 12: Beside using mysql_fetch_row() function in order to get the query result into database, you can also use mysql_fetch_array() function. It has the same function as mysql_fetch_row() function where the data reads line per line. The difference of both function is that the result of mysql_fetch_array() function is in the array assosiatif shape. For example, if you use mysql_fetch_array() in the program of data_employees such as $row = mysql_fetch_array($result) will produce:
and so on until the reading process is done line per line and until there is no more line to read. |
| | Give Your Opinion | Recommend |
|

