Chapter 19. Using a MySQL Database
In this lesson you will learn how to access a MySQL database from PHP. The pairing of PHP and MySQL is so popular and powerful that it is quite rare to find PHP being used without MySQL—or at least some other database back end.
Using MySQL
This lesson assumes that you already have MySQL installed on your web server and that PHP has the MySQL module loaded. For information on installing MySQL, see http://dev.mysql.com/doc/mysql/en/Installing.html, and to learn how to activate MySQL support in PHP, refer to Lesson 23, “PHP Configuration.”
Note
Further Reading. To learn about the MySQL database, read Sams Teach Yourself ...
Get Sams Teach Yourself PHP in 10 Minutes 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.