Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up