What is the difference between mysql_fetch_object and mysql_fetch_array?

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
What is the difference between mysql_fetch_object and mysql_fetch_array?
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
Advertisements
mysql_fetch_object and mysql_fetch_array.
What is the difference between the >> and >>> operators?
what is the difference between extends and implements
what is the difference between extends and implements
What is difference between a PROCEDURE & FUNCTION ?
What is the difference between $message and $$message?
what is the Difference between weblogic and jboss?
what is the difference between pop and oop
What is the difference between hibernate and spring
What is the difference between PHP4 and PHP5?
What is the difference between a constructor and a method?
What is difference between the java and javascript?
What is the difference between a JDK and a JVM?
What is difference between Path and Classpath?
What is difference between TRUNCATE & DELETE
What is the difference between JPA and Hibernate?
What is difference between the java and javascript?
What’s the difference between include and require?
What is the difference between ereg_replace() and eregi_replace()?
What is the difference between the functions unlink and unset?
What are the difference between abstract class and interface?
what is the difference between distributed application and web application?
What’s the difference between load() and get()?
What is difference between singleton and prototype bean?
What is the difference between JSF, Servlet and JSP?
what is difference between objectan primitive? - Java Beginners
What is the difference between the Boolean & operator and the && operator?
What are difference between Bean Factory and Application Context ?
what is the difference between productList==null and productList.size()==0

Ads