What is difference between mysql_fetch_array and mysql_fetch_object?
Essentially the difference is how the return value is treated.
The array returns an array of values, whilst the object method returns an object, as the names suggest. So the way that you get the data you require out varies depending on which method you use.
Most common is probably mysql_fetch_array.
Comment on this Question and Answer >>>
ASK A QUESTION
More mysql PHP Questions
I am extracting data from a MySQL Database of which one of the data stored is seperated by a comma. For example, step1,go here,step 2,go there,step 3,go back etc etc. I want to know how to split the data at the comma and format it in html. Using the splitHow do I include a conditional in my mysql query?
How do I order the results of my query?
How do I find the number of rows in a result set?
How do I find the ID of a new row added to a table?
