The classic mysql interface for PHP is a set of functions that map very closely to the C API functions you learned about in Lesson 23, “Using MySQL with C.” To check whether this module is included in your PHP installation, create a simple script that simply contains the following line:
View this script in a web browser and look for a section headed MySQL Support. If this section is not present, you will not be able to use the MySQL commands in PHP, and you will have to recompile PHP to include this module.
At compile time, MySQL support is enabled by using the --with-mysql configure switch. ...