Chapter 6. Using PHP and MySQL

Of the available Application Programming Interfaces (APIs) that you can use with MySQL, including Perl, Java, C, C++, Python, and more, PHP may be the most common. PHP’s strong integration with MySQL is just one reason so many programmers have embraced it, along with the common open source philosophy they both share.

Support for the MySQL database, which must be built into the PHP configuration, has been included by default since the advent of PHP version 4. The current version of PHP at the time of this writing (4.3) includes a number of MySQL-specific fixes and upgrades and has support for the new MySQL 4.0.

In this chapter I will use the existing sitename database—created in Chapter 4, “Introduction to SQL and ...

Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.