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
How do I get csrf token?
Is php front end?
What is php addslashes?
What is serialization in php?
What is escaping to php?
What is string function sql?
Tell me how to strip whitespace (or other characters) from the beginning and end of a string?
What is the importance of "method" attribute in a html form?
What does $_files means?
What is php oop?
Tell me how to find the length of a string?
How to convert the first character to upper case?
What does explode do in php?
What is the functionality of the functions strstr() and stristr()?
Write a query to find the 2nd highest salary of an employee from the employee table?