Organizational Research By

Surprising Reserch Topic

What are the differences between MySQL_fetch_array(), MySQL_fetch_object(), MySQL_fetch_row()?



asked Sep 13, 2013 in MYSQL by rajesh
edited Sep 12, 2013
0 votes
51 views



Related Hot Questions

1 Answer

0 votes

 

 
The mysql_fetch_object() returns the result from the database as an object.
 
Ex: $result->name
 
The mysql_fetch_array() returns the result from the database as an associative array or numeric array or both by using mysql_NUM or mysql_ASSOC options.
 
EX: $result[0] ,$result['name']
 
The mysql_fetch_row() returns the result from the database as a numeric array.
 
Ex: $result[0]
 
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...