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...

Which is the best method to fetch the data from mysql?
1.mysql_fetch_array()
2.mysql_fetch_object()
3.mysql_fetch_row()
4.mysql_fetch_assoc()

Answer Posted / pratik

mysql_fetch_object() is the best method. It is not
generally affected in small result. mysql_fetch_array() has
some limit to fetch data from table. when result it too high
(more than 4000 record) at that time
mysql_fetch_object()will support.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between == and === operator in PHP?

975


Explain the difference between isset() and empty()?

949


Is null or empty c#?

913


What is singleton class in php?

984


how to track no of users logged in?

1020


How does php strcmp work?

1051


Which escape sequences can be used in single quoted strings in php?

933


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

1039


What beforeFilter() is used?

1102


What types of Data Can Be Used as Array Keys?

1019


How do I update php?

1020


How to create a table using php?

1072


Can you define an array argument as a reference type?

911


How to get a random value from a php array?

993


Is php used for frontend or backend?

1007