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 are php strings?
Can I learn php in a month?
What is difference between strstr() and stristr()?
What is traits? How it is used in php?
Explain how to submit form without a submit button.
Do I need to install php after xampp?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
What are the ways to include file in php?
Is empty check in php?
What is a php namespace?
Tell me how can we define a variable accessible in functions of a php script?
List data types in PHP?
How do you check if a variable has not been set in php?
What is var_dump?
Tell me how to initiate a session in php?