What is the difference between mysql_fetch_object and
mysql_fetch_array?
Answer Posted / arumugam
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
an array.The array will be in in associative as well as
numeric manner.
i.e $result['column_name'] or $result[0].here '0'indicates
first column in table
| Is This Answer Correct ? | 47 Yes | 4 No |
Post New Answer View All Answers
Why we use get in php?
How do you define a constant in php?
Is php front end or back end?
Can we run php on tomcat server?
Explain preg_Match and preg_replace?
Write a php function to convert all null values to blank?
What is a persistence cookie?
How to include variables in double-quoted strings in php?
What is the capacity of mysql database?
What is the use of trim function in php?
How to set a page as a home page in a php based site?
What are headers in php?
Tell me how is the ternary conditional operator used in php?
How do you measure variables?
Is empty java?