One of the ways I practised was to create a database of CDs I own and then created web pages to display the data.
The first step would be to build a CMS using php to insert items into the database, update or delete them. If you make it so you have to be logged in to access the CMS pages then you’ll get practice with sessions or cookies and creating passwords.
You can then build web pages with queries / links to retrieve this info by differing criteria like band, genre etc. [This one](http://www.gbvdb.com/) inspired me, though it’s far more wide reaching than my own practices.
I used an earlier edition of the book margaux links to and found it easy to follow and adapt to my own uses.