Difference between MySQL_fetch_array(), MySQL_fetch_row() and MySQL_fetch_object()

Mysql_fetch_array():

  1. return values as both an associative and numeric array
  2. fetches a result row as a associated array, numeric array

        

mysql_fetch_assoc(): 

  1. return values as an associative array
  2. Fetaches a result row as object.

        
mysql_fetch_row(): 

  1. return values as an numeric array
  2. fetches a result row as array

        

Posted in PHP | Tagged , , , , | Comments Off

Comments are closed.