What is the difference between mysql_fetch_array and
mysql_fetch_object?

Answer Posted / sumit

mysql_fetch_object : will return the results from database
as objects. fields will be accessible like an objects
i.e $result->name

mysql_fetch_array : will return the results from database as
array. fields will be accessible like in objects
i.e $result[name]

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between mysql and mysql server?

449


What is difference between inner vs self vs cross?

482


What is mysql port?

538


What happens if null values are involved in expressions?

556


What is datatype in mysql?

460






What is mysqli_free_result?

495


How to find the unique values if the value in the column is repeated?

531


What is a text delimiter?

491


What is data type for image in mysql?

435


What are procedures in mysql? Explain

510


Explain what is mysql?

568


How do I clear the screen in mysql?

504


Transactions are used to treat sets of SQL statements atomically. State Whether True or False?

950


What is the function of myisamchk?

542


Is mysql a relational database?

421