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
Where are the persistent cookies stored on your computer?
How to find the length of a string?
What is an associative array?
What Is a Persistent Cookie?
What are the string function in php?
How to remove white spaces from the beginning and/or the end of a string in php?
What u mean by query?
What is the use of mvc in php?
Which php framework is best for security?
Why json is used in php?
What is the use of "enctype" attribute in a html form?
Can php run without server?
What is difference between print_r and echo in php?
What is difference between echo and print_r in php?
Tell me how is it possible to parse a configuration file?