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 / pradeep
hi all,
i think mysql_fetch_object or mysql_fetch_array both are best method bcz both are take same time for result show.
but mysql_fetch_array() fetches the records using the numeric index (as numbers) or using the string index (as column)
mysql_fetch_object() fetches the records as the object.
ex. $record->id;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the default time in seconds for which session data is considered valid?
Can age be a variable?
Define object-oriented methodology?
What is php session start?
Php says that an array is an ordered map. But how the values are ordered in an array?
Explain about a search-friendly site looks like?
What is difference between rest api and restful api?
Tell me what types of loops exist in php?
How the result set of mysql be handled in php?
How to convert a character to an ascii value?
Explain about the data types in PHP?
How would you open a directory for reading in php?
What is orm in php framework?
What is the difference between php and core php?
How do I escape data before storing it into the database?