Home Answers Viewqa PHP 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)      2 years and 6 months ago
Posted in : PHP

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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.