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
Does php has a future?
Which is correct about mysqli and pdo?
How to remove values saved in the current session?
What is php date function?
What is $globals php?
What are the characteristics of php?
Explain what is the difference between session and cookie?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
What is difference between array_merge and array_combine?
Define anonymous classes in php7?
What is urlencode and urldecode in php?
Tell me how can we connect to a mysql database from a php script?
What is variable function php?
Tell me are parent constructors called implicitly inside a class constructor?
What is preg_match?