I. PHP API Reference

This appendix describes the application programming interface for writing PHP scripts that use the PHP Data Objects (PDO) database-access extension to interface with MySQL. The API consists of a set of classes and methods for communicating with MySQL servers and accessing databases.

PDO works with PHP 5.0 and up, but this appendix assumes a minimum of PHP 5.1 because that is when PDO was first bundled with PHP. See http://www.php.net/pdo for more information. If you need to install PHP, see Appendix A, “Software Required to Use This Book.”

The examples in this appendix are only brief code fragments. For complete scripts and instructions for writing them, see Chapter 9, “Writing MySQL Programs Using PHP.” The manual for PHP ...

Get MySQL, 5th Edition 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.