PHP is a scripting language for writing Web pages containing embedded code that is executed whenever a page is accessed and that can generate dynamic content to be included as part of the output sent to a client’s Web browser. This chapter describes how to write PHP-based Web applications that use MySQL. For a comparison of PHP with the C and Perl DBI APIs for MySQL programming, see Chapter 6, “Introduction to MySQL Programming.”
The examples in this chapter draw on our
sampdb sample database, using the tables created for the grade-keeping project and for the Historical League in Chapter 1, “Getting Started with MySQL.” The applications described here should run under PHP 5 or higher.
This chapter refers ...