You could do text files and have an admin page. I have no idea how to make that happen in PHP - can PHP even access the file system? To, say, enumerate text files in a directory, server side, and build a response from them? A database will be drastically faster, tho, because of caching. A DB will also let you do things like query by author, instead of by movies vs music.
Whether you store the category or page directly as text or as integers with lookup values is a bit of a side issues. You can make a working system either way, and it will take a lot of concurrent users and or a lot of data before you'll feel pain from this.
So, basically, you would want to make some tables to hold your data, then write a bunch of procs in your MySQL database to interface with the data. One probably takes the page name, quote, and author as input parameters, then, internally, fires off an insert. Another might fetch all the quotes for sport. Finally, your PHP code will call the appropriate procedures and render the data they return to HTML.
http://dev.mysql.com/doc/refman/5.0/...rocedures.html
|