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

Answer Posted / narasimha.p

mysql_fetch_array()works as an associative array i.e. just
use the field name specified in your database to access the
values while mysql_fetch_row() returns the value of a
single field in a particular row if you r going to specify
the array's index which starts from '0'.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is php so popular?

518


What is difference between include,require,include_once and require_once()?

530


What is the use of strpos in php?

559


What is uniqid php?

578


What is csrf token in php?

550






Why laravel is the best php framework in 2019?

518


Tell me what is needed to be able to use image function?

543


What is php built on?

504


How is it possible to parse a configuration file?

509


What does the unlink() function mean?

578


Do while loops?

526


How to return a value back to the function caller?

558


Tell me how can we get the error when there is a problem to upload a file?

500


How many types of errors in php?

566


What is php used for?

524