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 / devendra modi
mysql_fetch_object() is better then mysql_fetch_array()
because mysql_fetch_array () will return numeric and
associative array if you have 1 lac record then it will
generate two array mean load two lack record. so it is
slower then mysql_fetch_object()
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Tell me how to create a session? How to set a value in session? How to remove data from a session?
Explain what is memcache?
What are the environmental variables?
List some string function name in php?
What is magic function in php?
Why triggers are used in mysql?
Steps for the payment gateway processing?
What is difference between include and include_once in php?
How does php sessions work?
Define object-oriented methodology?
What does pear stand for?
How to include a file to a PHP page?
What are the php functions?
How big is nvarchar max?
Is php a case sensitive language?