In this chapter, we list the functions that allow you to access the MySQL DBMS from PHP. We begin by discussing two database-specific data types used in many of these functions. The functions are then presented alphabetically with descriptions, and each includes an example code fragment. An introduction to PHP and examples of using PHP to access a MySQL DBMS are presented in Chapter 11. This chapter is based on Version 4.1.2, which was the version of PHP available at the time this book was written, but some differences between versions are discussed.