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_object and
mysql_fetch_array?

Answer Posted / arumugam

mysql_fetch_object : will return the results from database
as objects. fields will be accessible like in objects
i.e $result->name,$result->cust_name

mysql_fetch_array : will return the results from database as
an array.The array will be in in associative as well as
numeric manner.
i.e $result['column_name'] or $result[0].here '0'indicates
first column in table

Is This Answer Correct ?    47 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove the new line character from the end of a text line in php?

942


What is the difference between null and empty?

972


What is the special meaning of __sleep and __wakeup?

954


Is gender a dependent variable?

930


Explain Creating and Naming an Array?

975


Explain $_FILES Superglobal Array?

992


Is php a case sensitive language?

1117


What is isset post?

980


What is the definition of a session?

927


Explain how can we execute a php script using command line?

980


What is php and its features?

993


Is nan in javascript?

920


What is the importance of "method" attribute in a html form?

981


What Is a Persistent Cookie?

993


What are the advantages of php mysql?

930