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


Please Help Members By Posting Answers For Below Questions

What is whitespace in php?

512


What is restful api?

513


What is default session time in php?

520


what is mean by portal

1466


Does php support multithreading?

559






Is php free to use?

537


How to replace a substring in a given string in php?

551


What are encryption functions in php?

548


What are different types of runtime errors in php?

549


What is htmlentities function in php?

512


What is a model in php?

540


What is difference between md5 and SHA256?

541


CWD is a type of shell variable. State Whether True or False?

578


What is the difference between overloading and overriding in php?

543


How does html form submit work?

519