PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

What is difference between mysql_fetch_array and mysql_fetch_object?


These are two different ways of returning elements from a database using a mySQL query. You can also use the method mysql_fetch_row for a third possible method.

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

How do I insert the date into my table?

How do I delete a row from a table?

I am unable to make pages for my search result.Below I am giving the code that I am using. Career Search result Yami says

How do I find the number of rows affected by a query?

My website www.quicheandpie.com has navigation buttons which were added by going to admin/categorylist and adding a category. I can add category = navigation buttons and update them, but I can not delete them. Any ideas how I can find where the info



Custom Search