Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Which is better mysql or mssql?

0 Answers  


How do I start and stop mysql on windows?

0 Answers  


How to dump a table to a file with 'mysqldump'?

0 Answers  


How to present a past time in hours, minutes and seconds?

0 Answers  


What is mysql url?

0 Answers  






Explain triggers and stored procedures?

0 Answers  


What is difference between statement and preparedstatement?

0 Answers  


Can you tell a way to know the number of days between the two given dates in php?

0 Answers  


What is the maximum size of mysql database?

0 Answers  


What are the advantages of mysql in comparison to oracle?

0 Answers  


How do I get a list of table names in mysql?

0 Answers  


explain GROUPBY & HAVING clause with examples.

0 Answers  






Categories