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


Please Help Members By Posting Answers For Below Questions

What are the methods useful for method overloading?

509


What is the special meaning of __sleep and __wakeup?

551


What is compact function php?

513


How to count a number of words in a string in php?

491


Which function is used in php to check the data type of any variable?

496






How to split a string into array using php?

528


Write the statements that are used to connect php with mysql

489


Are static variables final?

504


What is namespace in php?

536


When do sessions end?

524


Which is best framework for php?

539


Does php have future?

563


What is the default time of cookie in php?

520


How to submit form without a submit button.

513


What is user defined function in php?

516