Chapter 17. DATABASE INTEGRATION

Topics in This Chapter

  • Building HTML Tables from SQL Queries

  • Tracking Visitors with Session Identifiers

  • Storing Content in a Database

  • Database Abstraction Layers

PHP has strong support for many databases. If native support for your favorite database doesn't exist, there's always ODBC, which is a standard for external database drivers. Support for new databases seems to show up regularly. The universal remark in this regard from the PHP developers has been "give us a machine to test on and we'll add support."

MySQL is undoubtedly the most popular database used by PHP coders. Apart from being free, it suits Web development because of its blazing speed. In the examples for this chapter I'll assume you have a MySQL database. ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites 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.