aspose file tools
The moose likes PHP and the fly likes Difference between mysql_fetch_array() and mysql_fetch_row() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Languages » PHP
Reply Bookmark "Difference between mysql_fetch_array() and mysql_fetch_row()" Watch "Difference between mysql_fetch_array() and mysql_fetch_row()" New topic
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
    
    1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between mysql_fetch_array() and mysql_fetch_row()
 
Similar Threads
Difference between wsad5.1.2 & Rad
JATO Vs JDOM
Run as AWT or SWT Application Eclipse Question
difference RAD & WSAD
When to use mysql_fetch_array()