In mysql_fetch_array() if two or more columns of the result have the same field names, what action is taken?

Options
- the first column will take precedence
- the column is skipped
- the last column will take precedence
- an error is thrown.


CORRECT ANSWER : the last column will take precedence

Discussion Board
mysql functions in PHP

All of MySQL functions in PHP with mysql_ prefix are now deprecated

Denis 03-1-2017 09:25 AM

mysql_fetch_array

Answer : The last column will take precedence.

The mysql_fetch_array() function returns a row from a recordset as an associative array and a numeric array.
If two or more columns of the result have the same field names,then the last column will take precedence.

IamJay 02-10-2015 12:52 AM

Meh, question

mysql_* funtions are depricated and thus should not be used.

Brett Santore 05-23-2014 08:25 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement