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
What is a php tag?
Is variable name casesensitive in php?
What is php default argument?
What are the advantages of indexes?
How do I escape data before storing it into the database?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
Describe which programming language does php parallel to?
What is oops php?
How does php isset work?
What are php data types?
What are computer variables?
How to pass variables by references?
What is php built on?
How is it possible to know the number of rows returned in result set?
What is magic function in php?