What is the difference between mysql_fetch_array and
mysql_fetch_object?




Answers were Sorted based on User's Feedback



What is the difference between mysql_fetch_array and mysql_fetch_object?..

Answer / subrat

mysql_fetch_array ? Fetch a result row as an associative
ARRAY, a numeric array, or both
mysql_fetch_object ? Fetch a result row as an OBJECT

Is This Answer Correct ?    24 Yes 2 No

What is the difference between mysql_fetch_array and mysql_fetch_object?..

Answer / sumit

mysql_fetch_object : will return the results from database
as objects. fields will be accessible like an objects
i.e $result->name

mysql_fetch_array : will return the results from database as
array. fields will be accessible like in objects
i.e $result[name]

Is This Answer Correct ?    4 Yes 1 No

What is the difference between mysql_fetch_array and mysql_fetch_object?..

Answer / jeevabala

mysql_fetch_array : fetch the result as an array
mysql_fetch_object : fetch the result as a object

Is This Answer Correct ?    0 Yes 0 No




What is the difference between mysql_fetch_array and mysql_fetch_object?..

Answer / abhay kumar

mysql_fetch_array display all matching record from table as
an array while mysql_fetch_object dispaly first matching
from table as ab object

Is This Answer Correct ?    6 Yes 9 No

Post New Answer



More MySQL Interview Questions

What are date and time functions in mysql?

0 Answers  


how to repair a table in mysql?

2 Answers  


Is SET Command is SQL Statement..?

4 Answers   BitWise,


What are the nonstandard string types?

0 Answers  


How to shut down the server with 'mysqladmin'?

0 Answers  






In PHPmysql language how can we update our previous information.when update form open then we get our previous information in textbox,checkbox,selct,radio button.How can we show the information in checkbox,select menu,radio button which is available in database?

0 Answers  


What are the 'mysql' command line arguments?

0 Answers  


SELECT country,city FROM customers GROUP BY country ORDER BY city DESC

5 Answers   HCL,


all the queries used in sql

0 Answers   TCS,


Which mysql function is used to concatenate string?

0 Answers  


What are the method you will follow while sql installing

0 Answers   Mind Tree,


How to return query output in html format?

0 Answers  






Categories