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
What is append query?
How do I insert multiple rows in a table?
Write a query to create a database and a table?
How do I show users in mysql?
What are date and time data types?
How internally data stores in MyISAM and INNODB table types?
How many queries can mysql handle?
How do I create a mysql username and password?
write a query to mysql in safe mode and to change the root password
What is regexp?
How do I select a table in mysql?
What is row level locking in access?
What is MySQL?
What is default password for mysql?
Can we write pl sql mysql?