File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » PHP
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: 4240
    
    7

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: 67

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
Run as AWT or SWT Application Eclipse Question
difference RAD & WSAD
When to use mysql_fetch_array()
Difference between wsad5.1.2 & Rad
JATO Vs JDOM