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
Do I need to install php after xampp?
How a variable is declared in php?
Is there an easy way to delete an element from a php array?
Explain do you use composer? If yes, what benefits have you found in it?
How are variables declared in php?
How is the ternary conditional operator used in php?
How to Retrieve a Cookie Value?
How do I run php?
What is the difference between Split and Explode in PHP?
What are the two most common ways to start and finish a php block of code?
Explain preg_Match and preg_replace?
Explain the ternary conditional operator in php?
What is an anti csrf token?
What does $_cookie mean?
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?