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 pdo in mysql?
What do you understand by mysql terminal?
What is processlist in mysql?
Is primary key auto increment?
What is schema in mysql?
What is mysql_pconnect?
What is general log in mysql?
How triggers can be used in mysql?
How to run a sql statement?
How many rows mysql can handle?
How is mysql database stored?
How to check server status with 'mysqladmin'?
What is view? How can you create and drop view in mysql?
Is mysql good for big data?
What is the maximum number of records in mysql table?