dotcomma.org: MySQL Database Interaction With PHP

There are quite a few ways to interact with a MySQL
database. Here I will show you one of the more common (and easier
in my opinion) ways.
This tutorial requires some knowledge of
SQL…and PHP….This won’t go over all of the MySQL PHP commands.
If you want that, go to www.php.net. This tutorial will just show
you how to use them effectively. This tutorial does not cover
permanent connections.”

“Let’s use a demo code for instance. This code connects to on port 3306 (standard MySQL port) and retrieves
data from the “people” database and the “friends” table.”