Question: what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
Answer: mysql_fetch_assoc() : This gets you an associative array of data. mysql_fetch_array() : This returns a combination array of associative elements as well as data with numerical index. mysql_fetch_object() : Returns an object with properties that correspond to the fetched row.