Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between mysql_fetch_array() and
mysql_fetch_row()?

Answer Posted / guru

Mysql_fetch_array():
Mysql_fetch_array() returns row as an associative, numeric array or both based on parameters passed in it. Three types of parameters can be passed in mysql_fetch_array function.

1. MYSQL_BOTH - return both associative and numeric array
2. MYSQL_ASSOC - return associative array
3. MYSQL_NUM - return numeric array
Reference:http://www.phponwebsites.com/2014/03/php-mysql-fetch-array.html
Mysql_fetch_row():
It return row as numeric array. We can't use associative indices to retrieve data from mysql table using php.
Reference: http://www.phponwebsites.com/2014/03/php-mysql-fetch-row.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?

1049


What is file upload?

1072


How many types of session are there?

1036


What is the function of string in c?

1012


What is the use of header() function in PHP? What the Limitation of HEADER()?

1047


How to remove leading and trailing spaces from user input values in php?

1019


Tell us how to set cookies in php?

929


Does apache use php?

995


What the difference between the 'bitwise and' operator and the 'logical and' operator?

975


How to return a value back to the function caller?

1031


Explain what does $_server means?

1056


Tell me what are the __construct() and __destruct() methods in a php class?

1004


What are the special characters you need to escape in single-quoted stings?

928


What is php.ini & .htacess file?

1038


What is overloading and overriding in oop?

1024