Question: what is the difference between fetch_assoc and fetch_array?
Answer: fetch_array() is used when you need access to both associative and numeric indexes. Use fetch_assoc() when you only need associative indexes.