What is the difference between mysql_fetch_object and mysql_fetch_array?

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









Related Tutorials/Questions & Answers:
Advertisements