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 / priya ranganathan

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
array. fields will be accessible like in objects
i.e $result[name],$result[cust_name]




Is This Answer Correct ?    139 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you declare a constant variable in php?

974


What is default session time and path in PHP. How to change it?

979


What are soundex() and metaphone() functions in php?

862


What is the difference between myisam and innodb?

994


What does odbc do in context with php?

990


What is a php form?

968


What are the four scalar types of php?

1078


What does $_server means?

929


What are the two most common ways to start and finish a php block of code?

1091


Is php harder than javascript?

964


How do you check if an arraylist is empty?

941


Explain about looping in PHP?

1025


Which is not a php magic constant?

1027


How is a constant defined in a PHP script?

983


What is difference between strstr() and stristr() in PHP?

939