Sunday, September 23, 2007

4. What is the difference between mysql_fetch_object and mysql_fetch_array?

A: mysql_fetch_array
i. We can access the data by the field names or their offsets
mysql_fetch_object
i. We can only access the data by the field names

No comments: