What is the difference between mysql_fetch_object and
mysql_fetch_array?
Answer Posted / priya ranganathan
mysql_fetch_object : will return the results from database
as objects. fields will be accessible like in objects
i.e $result->name,$result->cust_name
mysql_fetch_array : will return the results from database as
array. fields will be accessible like in objects
i.e $result[name],$result[cust_name]
Is This Answer Correct ? | 139 Yes | 10 No |
Post New Answer View All Answers
Which of the delimiter is ASP style?
How is php different from other languages?
Which framework is best for php?
What are the encryption functions in php?
What are objects in php?
Which is better php or nodejs?
What does explode do in php?
A process can run only in the background. State Whether True or False?
What is an example of a variable?
What is the use of strip_tags() method?
How can I embed a java program in php file and what changes have to be done in php.ini file?
What is lamp in php?
What is use of count() function in php?
How to include a file code in different files in php?
What is a session in php?