7. MySQL and PHP

PHP and MySQL have been used together for years, and the combination has improved the popularity of both technologies. PHP now supports two different sets of MySQL functions. The original, mysql, is meant for working with versions of MySQL up to 4.1. The newer functions, mysqli (MySQL Improved), are available as of PHP 5 and take advantage of added MySQL features. These functions also offer speed and security benefits. For these reasons, this chapter will use the newer mysqli functions, which means that you must be using at least PHP 5 with MySQL 4.1.1 (with support for mysqli built into PHP). If you are using an older version of either PHP or MySQL, you’ll need to use the original mysql extension. Documentation for those functions ...

Get MySQL, Second Edition: Visual Quickstart Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.