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

What is unsigned int in mysql?

985


How to drop an existing view in mysql?

963


Why we use mysql workbench?

951


How can you add and remove any column of a table?

987


What does the file with the extension: frm, myd, and myi contain?

982


can you tell how can you display the maximum salary in sql? : Mysql dba

917


Which is faster mysql or mongodb?

980


How to dump a table to a file with 'mysqldump'?

1080


Is mysql open source?

1014


Can you tell the difference between mysql_fetch_object and mysql_fetch_array?

1041


What is mysql routine?

1017


In which format data is stored in mysql database?

1046


How do I start mysql in linux?

951


What is mysql connection limit?

969


Can mysql function return a table?

1139