What are the differences between MySQL_fetch_array(),
MySQL_fetch_object(), MySQL_fetch_row()?

Answer Posted / amita

mysql_fetch_object will return result from database as
objects i.e. $result->name
mysql_fetch_array will fetch result row as an associative
array or numeric array or both with the help of mysql_NUM or
mysql_ASSOC option.
eg: $result[0] ,$result['name']
mysql_fetch_row will fetch result row as an numeric array.
eg: $result[0]

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do gaps in sequences occur?

736


How to use mysqldump to create a copy of the database?

689


How do stored procedures work?

718


How can you create and drop view in mysql?

703


How big is a blob mysql?

679


How do I insert an image into mysql workbench?

702


How do I save in mysql?

674


How are mysql timestamps seen to a user?

710


Why mysql is open source?

673


Where is the myisam table stored?

706


What mysql means?

688


What is dblink?

667


What is the function of mysqldump?

776


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

718


How to enter binary numbers in sql statements?

722