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 / pratik
mysql_fetch_object() is the best method. It is not
generally affected in small result. mysql_fetch_array() has
some limit to fetch data from table. when result it too high
(more than 4000 record) at that time
mysql_fetch_object()will support.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How to find the position of the first occurrence of a substring in a string?
What is php artisan tinker?
What are major variables in research?
Why php is widely used?
What is serialization in php?
Is multilevel inheritance possible in php?
What is the use of trim function in php?
Is nan in javascript?
What is a path Traversal?
What is regex in html?
What is the goto statement useful for?
What type of language is php?
Tell us how to set cookies in php?
Declare a new variable in php equal to the number 3;
What are the benefits of using queries?