Sorry guys, I know this isn't a technical website, but I'm really struggling here and I've been working on this for three days. I've installed Apache, I've installed MySQL, I've installed PHP, I've installed Pear using the go-pear.bat program included with the PHP distribution, I've installed Smarty. I've used "pear install db" from the command-line to install the DB package. I've edited the php.ini so that the "includes" directory includes the PEAR directory, and I've also edited it to uncomment the php_mysql.dll extension line. Now I'm completely new to all of this, this is the first time I've ever done anything involving these programs. But I've followed an O'Reilly book (printed in 2006) and completed all of the instructions down to the last letter. Whenever I try to use a command - not just PEAR commands but default commands too such as MySQL_connect() - I get an error. With PEAR's DB::connect (or anything else beginning with DB), the error returned is "extension not found", with MySQL_connect() the error is "call to undefined function" (how the hell can it be undefined, it's one of the basic bloody functions). Please guys, seriously, I'm going to have a nervous breakdown.