What are the differences between MySQL_fetch_array(),
MySQL_fetch_object(), MySQL_fetch_row()?
Answer Posted / amita
mysql_fetch_object will return result from database as
objects i.e. $result->name
mysql_fetch_array will fetch result row as an associative
array or numeric array or both with the help of mysql_NUM or
mysql_ASSOC option.
eg: $result[0] ,$result['name']
mysql_fetch_row will fetch result row as an numeric array.
eg: $result[0]
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I create a new database in mysql?
What is mysql server used for?
What are queries used for?
How many columns is too many mysql?
What is the maximum size of table in mysql?
1.how to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)?
How to get nth highest salary from table in a mysql?
List data types in mysql? Explain
In mysql, what is joins? Explain
What are the similarities between a function and a procedure?
What causes mysql too many connections?
Explain about the architecture of MYSQL?
What are the 'mysql' command line options?
What is row locking in mysql?
What can I do with mysql?