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
Is age a variable in research?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
How to create an empty array in php?
What are the popular frameworks in php?
What is the use of post in php?
How are php sessions stored?
What the use of var_dump()?
What is the purpose of the '.frm' file extension? What do thes file contain?
How to add 301 redirects in PHP?
How many types of errors in php?
How do you check if an arraylist is empty?
Why many companies are switching their current business language to php? Where php basically used?
What is difference between rest and http?
What is sql injection in php?
What is meant by urlencode and urldecode?