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

Is mysql good for large database?

573


Where is mysql installed on linux?

563


what is constraints?

721


i made a table whih contain a column "Photo" with image data type and i want to insert the byte of a picture present in my hardisk using insert statement in that colum... so what will be my insert statement?

2256


Is mysql distributed?

585






How to write after insert event update trigger on the same table in mysql?

596


What happens if null values are involved in expressions?

659


How do I check mysql version?

591


What is an example of a delimiter?

588


What are mysql queries?

572


How to print message in mysql trigger?

1097


What is a text delimiter?

591


What is acid in mysql?

539


How do I start and stop mysql on windows?

576


Is mysql query case sensitive?

587