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

Where is the functions php in wordpress?

1009


What is the difference between array_pop() and array_push()?

1137


How to Pass JSON Data in a URL using CURL in PHP?

1021


What is the difference between apache vs niginx?

1016


Is multiple inheritance supported in php?

965


Where is session value stored php?

970


What are the different errors in php?

960


Explain preg_Match and preg_replace?

931


What is the function of trim?

888


Is php closing tag necessary?

951


When should you use a stored procedure?

916


What's the best method for sanitizing user input with php?

878


why did u want to leave your past organisation?

2015


What's php?

1020


What is the use of $_server["php_self"] variable?

957