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 clob in mysql
How many rows we can insert in a mysql table?
What is difference between Sql server and MySql database? It may be silly question but i really dont know.
How to calculate the difference between two time values?
How to dump a table from a database.
Is microsoft sql same as mysql?
using primary can we relate two table, with out foreign key?
How to Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.
How many entries can mysql handle?
What is difference between mysqli and pdo?
How do I select a table in mysql?
What is processlist in mysql?
Is mysql easy to learn?
What do you understand by mysql terminal?
what are the different tables present in mysql? : Mysql dba