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 the difference between heap table and temporary table?

607


How many tables we can create in mysql database?

486


How to delete a column and add a new column to database

496


How do I grant privileges to a user in mysql phpmyadmin?

465


What is general log in mysql?

453






What is action query?

495


What are the advantages of MySQL when compared with Oracle?

527


What is csv?

509


What is delimiter in mysql?

470


What is the difference between char and varchar?

536


How can I create a database in mysql?

461


What is 'mysqladmin' in mysql?

512


Can varchar be primary key?

497


Why should I use mysql?

494


Does mysql need a server?

480