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

What is env in laravel?

721


What is mysqli php?

742


What is overloading in php?

738


Why laravel is the best php framework in 2019?

712


What is session and why do we use it?

772


What is session expiry?

714


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

698


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

722


What is the difference between die () and exit () in php?

705


Tell me what is the meaning of a final class and a final method?

788


Define anonymous classes in php7?

741


What is "echo" in php?

726


What is difference between single quotes and double quotes in php?

685


What is mean by an associative array?

751


Are static variables final?

745