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 difference between Method overriding and overloading in PHP?
What are the difference between overloading and overriding in oops?
Declare a new variable in php equal to the number 3;
Do you know what are traits?
Tell me can the value of a constant change during the script's execution?
How to set a value in session? How to remove data from a session?
What is difference between post and put in rest?
What are php libraries?
How does firefox manage cookies?
Explain some of the php array functions?
Does php have multiple inheritance?
Does php has a future?
Write a program to get lcm of two numbers using php?
How do you debug php?
What are the advantages of indexes?