PHP MySQL: mysql_fetch_row() Function



php mysql basic step by step tutorial - part 11: Mysql_fetch_row() function takes the data from $result variable in per line. The first take is the top-ranking data line. The data that it takes is in the array shape where the element from array is the field of data table. For example, in the program of data_employees, the syntax of $row = mysql_fetch_row($result) will produce:
The first read: $row[0] = "2"
		$row[1] = "Brain McFaiden"
		$row[2] = "Obama Street B12"

The second read: $row[0] = "4"
		$row[1] = "Clara Chloe"
		$row[2] = "Big Paradise California CC10"
and so on until the while order get the false value then the restarting will be stopped.


Series this article:
PHP MySQL: Connecting to Database Use mysql_connect()
PHP MySQL: Making Database Use mysql_create_db()
PHP MySQL: Making Table
PHP MySQL: The Data Type of Field
PHP MySQL: Char and Varchar Data Type
PHP MySQL: Data Type of Date
PHP MySQL: MySQL Syntax Orders
PHP MySQL: Inserting Data
PHP MySQL: Creating Form Insert Data
PHP MySQL: Display Data
PHP MySQL: mysql_fetch_row() Function
PHP MySQL: mysql_fetch_array() Function
PHP MySQL: Editing data
PHP MySQL: Deleting data
PHP MySQL: Adding Field Table
PHP MySQL: Editing Field Table
PHP MySQL: Deleting Field Table


Tag: mysql, database, mysql_fetch_row Category: PHP Database Post : March 02nd 2008 Read: 6,657 Bookmark and Share

blog comments powered by Disqus