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 stop a mysql command?
Does mysql use tcp or udp?
Is mysql query case sensitive?
What is a user defined variable?
Why we use mysqli instead of mysql?
How do I grant privileges to a user in mysql phpmyadmin?
Can I use mariadb instead of mysql?
Can python connect to mysql?
What is the difference between now() and current_date()?
How many groups of data types?
How can you count the total number of records of any table?
How can we encrypt and decrypt a data presented in a table using mysql?
How to returns the columns and column information pertaining to the designated table.
What is logs in mysql?
What is field in mysql?