Personal Catalogue: PHP & MySQL — Chapter 7, Exercise 1 ==================================================== TASK Build index.php using the GROUP_CONCAT query from this chapter against your real database (with at least one tagged book, one untagged book, and one CD or DVD already in it from earlier chapters). Confirm the untagged items show a sensible fallback (e.g. "—") in the Tags column rather than a blank cell or a PHP warning. SOLUTION With index.php built using the full GROUP_CONCAT/LEFT JOIN query and the rendering loop from the chapter, and a database containing (from earlier chapters) at least: - "The Hobbit" (book, tagged Fantasy, Adventure) - "Fluent Python" (book, no tags attached) - "The Dark Side of the Moon" (CD, no tags — CDs never get tags) loading index.php shows a table where: - The Hobbit's Tags column reads "Adventure, Fantasy" (alphabetical, per the ORDER BY tags.name inside GROUP_CONCAT) - Fluent Python's Tags column reads "—" - The Dark Side of the Moon's Tags column reads "—" The fallback works because of this exact line in the rendering loop: