•What is the difference between “mysql_fetch_array”
and “mysql_fetch_object?
Answers were Sorted based on User's Feedback
Answer / ravi farare
mysql_fetch_array() fetches record from database table as an
array. We can access each record like arr[0],arr[1]....etc.
on the other side mysql_fetch_object() fetches record from
database table as an object. So We can access each record
like obj->[column name].
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / kapil dhiman
mysql_fetch_array() return an array of records
mysql_fetch_object return an object of records
Is This Answer Correct ? | 5 Yes | 0 No |
Where do I run php code?
Where can I learn php?
How to connect to a url in php?
how to select single row from table and insert into same table as a new record by using a single sql query.
How can we get ip address of a client in php?
what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?
What is the function file_get_contents() usefull for?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
Can you define an argument as a reference type?
How is a constant defined in a PHP script?
What are super global variables in php?
How to write the form tag correctly for uploading files?