Connecting to MySQL with PHP

I’m working my way through “Building your own database driven web site using php and mysql” by Kevin Yank.

I’ve followed the code line for line and i can’t seem to get my browser to load the code in chapter 4 that tests the link to access the mysql database.

I’m using PHP 5 on MAMP. I place my index.php and output.html.php files in a subdirectory of the root folder and the browser just comes up blank.

Any help please.

i corrected this problem, turns out i had some mis spells and missed a couple semicolons.