what is the difference between mysql_fetch_array() and
mysql_fetch_row()?

Answer Posted / tushal burungale

fetch_array:
fetch_array returns result in assoc array and also in
numeric array
e.g fetch_array:Array([0]=>Tushal)

fetch_row:
mysql_fetch_row returns result in numeric array only.
e.g
fetch_row:Array([0]=>Tushal[name]=>Tushal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is jquery better than javascript?

553


How many types of arrays are there in php?

530


Does php has a future?

487


What is difference between array_merge and array_combine?

512


how to track no of users logged in?

588






Which function(s) in PHP computes the difference of arrays?

573


In php, how to redirect from one page to another page?

506


Write a program to upload a file in php?

537


What is the difference between == and === in php?

545


Which php framework is best for web development?

493


How to test if a variable is an array?

553


How is traits used in php?

526


Write down the code for saving an uploaded file in PHP.

587


What are the advantages of indexes in php?

558


How to retrieve values out of an array?

517