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
Where is the functions php in wordpress?
What is the difference between array_pop() and array_push()?
How to Pass JSON Data in a URL using CURL in PHP?
What is the difference between apache vs niginx?
Is multiple inheritance supported in php?
Where is session value stored php?
What are the different errors in php?
Explain preg_Match and preg_replace?
What is the function of trim?
Is php closing tag necessary?
When should you use a stored procedure?
What's the best method for sanitizing user input with php?
why did u want to leave your past organisation?
What's php?
What is the use of $_server["php_self"] variable?