brijesh
What is the difference between mysql_fetch_object and mysql_fetch_array?
1 Answer(s)      4 years and 8 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