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 mongodb and mysql?

460


How do I start mysql?

492


Who owns mysql database?

568


Can we store files in mysql?

479


What is orm in mysql?

474






What is the difference between having and where clause in mysql? Explain

536


What is the maximum number of records in mysql table?

452


What is the command used to create a database using php and mysql?

657


Is oracle better than mysql?

465


Is there a way to see the files which are stored?

490


How to load data files into tables with 'mysqlimport'?

472


How do I zip a file in mysql?

540


How can you validate emails using a single query?

454


What is the use of count function in mysql?

556


How to include numeric values in sql statements?

499