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
Why do gaps in sequences occur?
How to use mysqldump to create a copy of the database?
How do stored procedures work?
How can you create and drop view in mysql?
How big is a blob mysql?
How do I insert an image into mysql workbench?
How do I save in mysql?
How are mysql timestamps seen to a user?
Why mysql is open source?
Where is the myisam table stored?
What mysql means?
What is dblink?
What is the function of mysqldump?
Is there a way to see the files which are stored?
How to enter binary numbers in sql statements?