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_row()?

Answer Posted / tarun singhal

mysql_fetch_array: returned a row from recordset as a
numeric and/or associative array.

mysql_fetch_row: returned a row from recordset as numeric array.

example:
$con=mysql_connect("localhost","root","root");
$sql = "select * from member where id=1";
$result=mysql_query($sql,$con);
print_r(mysql_fetch_array($result));
print_r(mysql_fetch_row($result));

Is This Answer Correct ?    38 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of rand() in php?

987


Why sessions are used in php?

900


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

954


Is overloading possible in php?

922


What is the use of limit in mysql?

915


What is difference between mysql_fetch_array and mysql_fetch_assoc?

900


Why do we use polymorphism in php?

957


Explain preg_Match and preg_replace?

921


What is the use of header() function in php?

980


How to set a value in session? How to remove data from a session?

924


How we get ip address of client, previous reference page etc?

919


What are the rules for naming a php variable?

990


How do I make a reset button in html?

921


How to set cookies in PHP?

1035


What is the use of post in php?

929