Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP What is the difference between mysql_fetch_object and mysql_fetch_array?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
What is the difference between mysql_fetch_object and mysql_fetch_array?
1 Answer(s)      3 years and 10 months ago
Posted in : PHP


What is the difference between mysqlfetchobject and mysqlfetcharray?


Advertisement
View Answers

November 13, 2010 at 5:13 PM


Hi,

mysqlfetchobject : will return the results from database as objects. fields will be accessible like in objects

i.e $databaseresult->name,$databaseresult->contact

mysqlfetcharray : will return the results from database as array. fields will be accessible like in objects

i.e $databaseresult[name],$databaseresult[contact]

Thanks



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com