Yeah, there's no question that a database is the right way to do this but the op specifically asked for it that way. Also, since he described himself as a beginner, I thought I'd start simple.
Doing it with a database takes about three fairly substantial new skills: create database, connect to database from PHP, select and display data (not to mention building an add/edit/delete tool to manage the data). Creating text files is something he's already comfortable with so I thought this would be a small step - he could see some PHP code, learn how it works, and then later ask how he can save himself the trouble of creating that many text files.