What Are The Differences Between Mysql_fetch_array(), Mysql_fetch_object(), Mysql_fetch_row()?

Discussion in 'PHP' started by jessysmith1234, Feb 19, 2013.

  1. #1
    What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
     
    jessysmith1234, Feb 19, 2013 IP
  2. TestingWhiz1

    TestingWhiz1 Member

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    mysql_fetch_object() returns an object,So we can access the data by the field names only. mysql_fetch_array() returns an array and mysql_fetch_row() fetches one row of the data from the result.
     
    TestingWhiz1, Feb 19, 2013 IP