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
What are the differences between require and include?
What exactly is PHP?
Are php short tags acceptable to use?
What is final in php?
How to assigning a new character in a string using php?
What is the difference between the include() and require() functions?
Do you know is it possible to extend the execution time of a php script?
How to get useful error messages in php?
What is the use of addslashes in php?
What is $_ request in php?
When sessions ends?
What is overloading in php?
What is the use of magic function in php?
Is gender a dependent variable?
Can you specify the "new line" character in single-quoted strings?