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

What is append query?

514


How do I insert multiple rows in a table?

460


Write a query to create a database and a table?

494


How do I show users in mysql?

514


What are date and time data types?

501






How internally data stores in MyISAM and INNODB table types?

2088


How many queries can mysql handle?

496


How do I create a mysql username and password?

497


write a query to mysql in safe mode and to change the root password

520


What is regexp?

659


How do I select a table in mysql?

491


What is row level locking in access?

484


What is MySQL?

574


What is default password for mysql?

494


Can we write pl sql mysql?

505