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 / vinoth
My Opinion is at the developer point of view
mysql_fetch_assoc() is the Best method to fetch data but at
the same time at the user point of view we can use
mysql_fetch_object()for faster execution of the data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain type casting and type juggling.
What happens if an expected input field was not submitted?
What are the advantages of stored procedures, triggers, indexes in php?
Is php pass by reference or value?
Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?
Write a program in php to reverse a number?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
What is faster in php?
What is difference between rest api and restful api?
What is php and what does it do?
Why is used in php?
What good is polymorphism?
How do you use end in python?
What are php magic quotes?
How to get no of arguments passed to a PHP Function?