Challenge1:08 with Alena Holligan
Ready for a challenge? You've learned a lot about PHP and databases so far. Functions, Queries, Conditional Statements and Loops. In fact, you've learned enough to pull the genres for the form dropdown from the database. For this challenge, I want you to use the database for the genre dropdown instead of hard coding it.
Refresher on Adding People and Roles
Challenge: Use the database for the genre dropdown
- Pull all the genres from the database
- sorted alphabetically
- grouped by category.
- Loop through those results
- Create the HTML for the genre dropdown.
- Include HTML to select the genre that the user submitted.
You need to sign up for Treehouse in order to download course files.Sign up