what is the difference between mysql_fetch_array() and
mysql_fetch_row()?
Answer Posted / vijay kumar singhal
wrong, instead both returns all the rows from table. The
difference between them is fetch_array return result in
assoc array as well as numeric array and you can also
specify which specific type of array you want by providing
second paramter to the function while fetch_row return
result in numeric array only.
fetch_row : Array( [0]=>vijay)
fetch_array : Array([0]=>vijay [name]=>vijay)
| Is This Answer Correct ? | 131 Yes | 13 No |
Post New Answer View All Answers
What is use of count() function in php?
Which is better wamp or xampp?
How to remove leading and trailing spaces from user input values?
What are sql injections, how do you prevent them and what are the best practices?
What is asort php?
How to create an array from php string?
How many types of arrays are there in php?
Are php sessions secure?
What is the difference between implode() and explode() in php?
How would you determine the size of a file in php?
What are objects in php?
When do sessions end?
How check submit button is clicked in php?
Tell me what are the __construct() and __destruct() methods in a php class?
How do you pass a variable by value in php?