It sounds like you're using PHP 5, MySQL functionality is not included in PHP 5 by default, but it is included in PHP 4 by default. So you have a few options, you could go back to PHP 4, which was what the book was written with. Or you could go through the process of installing the mysql extension with PHP 5 (PHP version shouldn't matter as far as the book is concerned).
, all you have to do is uncomment the extension .dll in php.ini and make sure that the extension path is correct and the extension exists in that directory.
So step by step, open php.ini typically located at C:\Windows\php.ini.
Provide the correct path to the extension directory.
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"
I recommend C:\PHP\extensions.
Uncomment the extension by removing the semi-colon.
These extra extensions are typically available in the .zip download of PHP but not the Windows installer.
Finally you need to copy libmysql.dll from the PHP directory to the Windows directory, e.g. C:\Windows.
Restart Apache, MySQL ought to work now.
A PHP/C-Client/PEAR solution for webmail