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

Does php have future?

770


How to turn on the session support?

858


What is csrf token in php?

826


What are the three parts of an http request?

772


What is difference between session_unset and session_destroy?

738


How to access standard error stream in PHP?

805


Is php harder than javascript?

712


What is the use of print_r function in php?

743


Explain the ternary conditional operator in php?

846


What type of errors can be occurred in php?

780


Tell me how to create a text file in php?

781


What is difference between php and html?

730


Can you specify the "new line" character in single-quoted strings?

760


What is the use of Php variables?

826


Explain about objects in PHP?

783