What is the difference between mysql_fetch_array and
mysql_fetch_object?
Answers were Sorted based on User's Feedback
Answer / subrat
mysql_fetch_array ? Fetch a result row as an associative
ARRAY, a numeric array, or both
mysql_fetch_object ? Fetch a result row as an OBJECT
Is This Answer Correct ? | 25 Yes | 2 No |
Answer / sumit
mysql_fetch_object : will return the results from database
as objects. fields will be accessible like an objects
i.e $result->name
mysql_fetch_array : will return the results from database as
array. fields will be accessible like in objects
i.e $result[name]
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / jeevabala
mysql_fetch_array : fetch the result as an array
mysql_fetch_object : fetch the result as a object
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abhay kumar
mysql_fetch_array display all matching record from table as
an array while mysql_fetch_object dispaly first matching
from table as ab object
Is This Answer Correct ? | 6 Yes | 9 No |
What is the datatype of image in mysql?
What is use command in mysql?
I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?
How can you handle the –secure-file-priv in mysql?
How to create a trigger in mysql?
Where is mysql installed on linux?
How to load data files into tables with 'mysqlimport'?
How to see table's field formats or description of table .
How to include character strings in sql statements?
How can I create database in mysql?
How do I start mysql from command line?
date funciton