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
What is namespace and use in php?
Write a php function to convert all null values to blank?
How to download files from an external server with code in php?
Which is better get or post method?
how can i develop forum code? any one pleale help me on this question
How the values are ordered in an array?
Why php is sometimes called as embedded scripting language?
Which function would you use to read a line of data from a file in php?
Where php basically used?
What are include() and require() functions?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?
What is the current stable version of php? What advance thing in php7?
What is composer install?
What are the __construct() and __destruct() methods in a php class?
explain php variable length argument function.