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
Explain the difference between $var and $$var?
Is json a string php?
Explain setcookie() function in php?
Is php a low level language?
Explain PHP looping?
Can constructor be private in php?
What are getters and setters php?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
Explain what are psrs? Choose 1 and briefly describe it?
How do you trim spaces in excel?
How to update memcached when you make changes to php?
What is session in php w3schools?
What is the expansion of LAMP?
Does php need to be installed?
Can we run php in apache tomcat?