O'Reilly logo

MySQL, Second Edition: Visual Quickstart Guide by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required