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 |
I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.
How you will show all data from a table.
How to upload a large file through phpmyadmin in mysql?
How do I export mysql query results to excel?
how many table created when we create a table in mysql?
How many groups of data types?
Explain the difference between mysql and mysql interfaces in php?
why we are join a tow table
How to see table's field formats or description of table .
What is the difference between the LIKE and REGEXP operators?
What is ddl, dml, and dcl?
how to take mysql database structure backup