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 / devendra modi

mysql_fetch_object() is better then mysql_fetch_array()
because mysql_fetch_array () will return numeric and
associative array if you have 1 lac record then it will
generate two array mean load two lack record. so it is
slower then mysql_fetch_object()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can php use gettext?

1016


When a conditional statement is ended with an endif?

932


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

1036


What is super keyword in c++?

1002


What function should you use to join array elements with a glue string?

964


Is python better than php?

998


What does the expression exception::__tostring means?

1006


What is purpose of @ in Php?

1080


What does sign mean php?

970


When do you use define() and when do you use const. What are the main differences between those two?

1053


What is the difference between array_merge() and array_merge_recursive() in php?

1071


What is good average session duration?

1017


What is sql injection in php?

1122


What is php crud api?

938


Write a program in php to find the occurrence of a word in a string?

1068