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

Answer Posted / srinivas1982

Wrong mysql_fetch_row retrives a single row or record from a
table and mysql_fetch_array returns all rows and result into
an array this array is both numeric and associative.

mysql_fetch_row has single row.
where as mysql_fetch_array has multiple rows.

Is This Answer Correct ?    25 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How error handling is being handled by php?

539


How to redirect https to http url through .htaccess?

492


What is the difference between nowdoc and heredoc?

525


What is polymorphism with example in php?

504


How do you check if an arraylist is empty?

503






What is php mainly used for?

522


What is the difference between require and include in php?

500


Is it difficult to learn php?

527


Why triggers are used in mysql?

523


What is the difference between exception::getmessage and exception::getline?

524


Tell me is it possible to submit a form with a dedicated button?

521


What are traits?

693


Write a program using while loop?

546


How to execute a php script from the command line?

551


How to insert a line break in php string?

535