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
How to remove the new line character from the end of a text line in php?
What is the difference between null and empty?
What is the special meaning of __sleep and __wakeup?
Is gender a dependent variable?
Explain Creating and Naming an Array?
Explain $_FILES Superglobal Array?
Is php a case sensitive language?
What is isset post?
What is the definition of a session?
Explain how can we execute a php script using command line?
What is php and its features?
Is nan in javascript?
What is the importance of "method" attribute in a html form?
What Is a Persistent Cookie?
What are the advantages of php mysql?