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 difference between Method overriding and overloading in PHP?

543


What are the difference between overloading and overriding in oops?

536


Declare a new variable in php equal to the number 3;

503


Do you know what are traits?

530


Tell me can the value of a constant change during the script's execution?

569






How to set a value in session? How to remove data from a session?

494


What is difference between post and put in rest?

512


What are php libraries?

494


How does firefox manage cookies?

536


Explain some of the php array functions?

572


Does php have multiple inheritance?

500


Does php has a future?

489


Write a program to get lcm of two numbers using php?

506


How do you debug php?

559


What are the advantages of indexes?

499