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 are the differences between MySQL_fetch_array(),
MySQL_fetch_object(), MySQL_fetch_row()?

Answer Posted / amita

mysql_fetch_object will return result from database as
objects i.e. $result->name
mysql_fetch_array will fetch result row as an associative
array or numeric array or both with the help of mysql_NUM or
mysql_ASSOC option.
eg: $result[0] ,$result['name']
mysql_fetch_row will fetch result row as an numeric array.
eg: $result[0]

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I stop a mysql command?

916


Does mysql use tcp or udp?

873


Is mysql query case sensitive?

899


What is a user defined variable?

844


Why we use mysqli instead of mysql?

1005


How do I grant privileges to a user in mysql phpmyadmin?

904


Can I use mariadb instead of mysql?

862


Can python connect to mysql?

932


What is the difference between now() and current_date()?

925


How many groups of data types?

924


How can you count the total number of records of any table?

867


How can we encrypt and decrypt a data presented in a table using mysql?

969


How to returns the columns and column information pertaining to the designated table.

972


What is logs in mysql?

821


What is field in mysql?

856