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
How can you declare a constant variable in php?
What is default session time and path in PHP. How to change it?
What are soundex() and metaphone() functions in php?
What is the difference between myisam and innodb?
What does odbc do in context with php?
What is a php form?
What are the four scalar types of php?
What does $_server means?
What are the two most common ways to start and finish a php block of code?
Is php harder than javascript?
How do you check if an arraylist is empty?
Explain about looping in PHP?
Which is not a php magic constant?
How is a constant defined in a PHP script?
What is difference between strstr() and stristr() in PHP?