Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

•What is the difference between “mysql_fetch_array”
and “mysql_fetch_object?

Answer Posted / ravi farare

mysql_fetch_array() fetches record from database table as an
array. We can access each record like arr[0],arr[1]....etc.
on the other side mysql_fetch_object() fetches record from
database table as an object. So We can access each record
like obj->[column name].

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is get and post method in php?

1062


Write down the code for save an uploaded file in php.

1021


How to declare an array in php?

1171


How to calculate the difference between two dates using php?

1102


What is the difference between explode () and split () functions in php?

1166


Write a program to show the joining of two strings in php?

1006


Can we run php on tomcat server?

1109


What is the purpose of the '.frm' file extension? What do thes file contain?

1012


What is mysql in php?

982


Is ruby on rails php?

1014


Tell me how do you execute a php script from the command line?

1036


How do I stop php artisan serve in windows?

1007


How to remove duplicate values from a PHP Array?

1159


Why sessions are used in php?

1012


What is the use of rand() in php?

1091