What is the difference between mysql_fetch_object and mysql_fetch_array?

Ads
Ads

What is the difference between mysql_fetch_object and mysql_fetch_array?


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

What is the difference between mysqlfetchobject and mysqlfetcharray?

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


Ads









Related Tutorials/Questions & Answers:
Advertisements