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 / vinoth

My Opinion is at the developer point of view
mysql_fetch_assoc() is the Best method to fetch data but at
the same time at the user point of view we can use
mysql_fetch_object()for faster execution of the data.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how to create a text file in php?

755


What is session_start () in php?

715


What is php date function?

814


Php says that an array is an ordered map. But how the values are ordered in an array?

818


What is a php session?

771


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1622


Name some of the functions in php.

701


What is meant by ‘passing the variable by value and reference' in php?

757


Is it possible to destroy a cookie?

756


What is a string in r?

710


What is difference between get and post in php?

816


How to check a key exist in an array?

787


How to use http headers inside php?

776


What is the output of the ucwords function in this example?

755


Are parent constructors called implicitly inside a class constructor?

733