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 install the latest mysql on ubuntu?
How does mysql store dates?
Is there a way to see the files which are stored?
What is “i_am_a_dump” flag in mysql?
What are the disadvantages of mysql?
Will mysql remain free?
What are the advantages of myisam over innodb?
What is 'mysqladmin' in mysql?
How do I install mysql on windows 7?
How do you kill a long running query in mysql?
What do I do if I forgot my mysql root password?
Write a query to display current date and time?
How to create table with same structure of student table in mysql?
Can you tell a way to know the number of days between the two given dates in php?
how can you test for null values in a database? : Mysql dba