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 is php and why it is used?
What are the different types of PHP arrays?
What are the php functions?
What is the use of header() function in php?
When should you use a stored procedure?
What is the use of htmlentities in php?
How to write a program to make chess?
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
What is default session time and path in PHP. How to change it?
What is the purpose of constant() function?
What is the use of dual table in mysql?
What language is php written in?
What is htaccess? Why do we use this and where?
How to add 301 redirects in PHP?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?