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
What is env in laravel?
What is mysqli php?
What is overloading in php?
Why laravel is the best php framework in 2019?
What is session and why do we use it?
What is session expiry?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is the difference between die () and exit () in php?
Tell me what is the meaning of a final class and a final method?
Define anonymous classes in php7?
What is "echo" in php?
What is difference between single quotes and double quotes in php?
What is mean by an associative array?
Are static variables final?