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

Will mysql remain free?

719


What is mysql installer?

709


What is an example of a delimiter?

706


How can we encrypt and decrypt a data presented in a table using mysql?

773


How to write optimized query in mysql?

755


Which mysql function is used to concatenate string?

1087


What is required to create mysql database?

752


What is the usage of regular expressions in mysql?

702


What is processlist in mysql?

735


What is unique key in mysql?

717


What is the purpose of using ifnull() function?

731


Where does mysql store data?

642


How do I edit a database in mysql workbench?

694


Write a command to list all databases in mysql?

749


How to use regular expression in pattern match conditions?

752