NOW THAT YOU ARE FAMILIAR WITH THE BASICS of PHP, you can begin looking at integrating a database into your scripts. As you might recall, Chapter 2, “Storing and Retrieving Data,” described the advantages of using a relational database instead of a flat file. They include
RDBMSs can provide faster access to data than flat files.
RDBMSs can be easily queried to extract sets of data that fit certain criteria.