I don't know if this has been mentioned before but in the script called cats.php, which I just downloaded from the Sitepoint/books code archive, the mysql_select_db script seems to be missing.
This causes an 'unable to select database' error message.
It took me a while to realise this as I am quite new to CGI programming.
Bookmarks