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
Does php support polymorphism?
What are the string functions in php?
Do loops php?
Difference between array_combine and array_merge?
What is use of count() function in php?
What is the difference between characters and #?
Is facebook still in php?
How do I run a php script?
What is mean by an associative array?
What is sticky form in php?
Explain array_uintersect()?
Tell me what sized websites have you worked on in the past?
Explain converting an object?
What is print_r?
Tell me which programming language does php resemble to?