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 install the latest mysql on ubuntu?

991


How does mysql store dates?

939


Is there a way to see the files which are stored?

971


What is “i_am_a_dump” flag in mysql?

1066


What are the disadvantages of mysql?

1071


Will mysql remain free?

959


What are the advantages of myisam over innodb?

986


What is 'mysqladmin' in mysql?

1036


How do I install mysql on windows 7?

993


How do you kill a long running query in mysql?

895


What do I do if I forgot my mysql root password?

900


Write a query to display current date and time?

924


How to create table with same structure of student table in mysql?

951


Can you tell a way to know the number of days between the two given dates in php?

1095


how can you test for null values in a database? : Mysql dba

937