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">
<meta charset="utf-8">
<title>Query String Link Example</title>
<p><a href="name.php?name=Kevin">Hi, I&rsquo;m Kevin!</a></p>

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.