I'm having a problem with this same example. I'm on a mac and set up my server with MAMP as outlined in the book. I was able to successfully complete the "today" example from chapter 1 but with this example when I type the URL into my browser (http://localhost/name.html) all I get is a page of code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Query String Link Example</title>
</head>
<body>
<p><a href="name.php?name=Kevin">Hi, I&rsquo;m Kevin!</a></p>
</body>
</html>

I copied the code from https://github.com/spbooks/PHPMYSQL5...hapter3/links1 and pasted them into text edit files and saved them as name.html and name.php.html in the htdocs folder in the MAMP folder in Applications.