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 / 24/06/08
mysql_fetch_array() is select total values of tables.
mysql_fetch_object() is select a partcular name of the row
in a tables.
mysql_fetch_row() is select row in tables is saem one
object functionor comment.
mysql_fetch)assoc() it means the same function of
mysql_fetch)row and object function.
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
How break and continue while loop in php?
Can we extend two classes in php?
Write the statements that are used to connect php with mysql
How is a session id generated?
What is binary safe string?
How to read the entire file into a single string?
What is die in php?
What is the difference server side and browser side validation?
What are the correct and the most two common way to start and finish a PHP block of code?
What are the special characters you need to escape in single-quoted stings?
What is encapsulation in php?
How is it possible to set an infinite execution time for php script?
What is the use of count() function in php?
What is the method to register a variable into a session?
What are the steps for the payment gateway processing?