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


Please Help Members By Posting Answers For Below Questions

Do I need to install php after xampp?

741


How a variable is declared in php?

723


Is there an easy way to delete an element from a php array?

693


Explain do you use composer? If yes, what benefits have you found in it?

747


How are variables declared in php?

767


How is the ternary conditional operator used in php?

728


How to Retrieve a Cookie Value?

767


How do I run php?

722


What is the difference between Split and Explode in PHP?

807


What are the two most common ways to start and finish a php block of code?

869


Explain preg_Match and preg_replace?

764


Explain the ternary conditional operator in php?

822


What is an anti csrf token?

696


What does $_cookie mean?

722


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?

913