The code at the bottom of pg. 95 and top of pg. 96 are two different ways that you can have code in a php script that allows you to connect to the MySQL server. The book is not asking/telling you to type the code anywhere specifically. It's basically demonstrating that there are two ways to type code in a php script that will allow you to connect to the MySQL server. Now as you continue through the book, you'll observe that the second way is the one typically used throughout the book. For example, look at the 4th line of code in the code block at the bottom of pg. 96, and you'll see the code in use that matches the 2nd way.
Moving on to your second question, I think it's a clerical error in the book when it says to open a browser and type in the code. You should actually type the code into a text editor such as Notepad and save the file as createmovie.php in your document root. Then open the file in your browser(Internet Explorer) with the following line:
http://localhost/createmovie.php
Or, if you have your Apache server setup using port 8080, use the following:
http://localhost:8080/createmovie.php
I hope this helps.