title: Opening new page in PHP via <a href> with mysql host
body: <p>Basically I've connected my PHP to the mysql database which loads a bunch of users names. I want to be able to click on any of the users name so I've hyperlinked them all through a while loop and . When I click one of the links it opens a new page but I would like to be able to tell which username I clicked on. I think I could do this by using $_GET but I'm getting the following errors:</p>
  
  <pre><code>&lt;a href="usersProfile.php?firstname=&lt;?php echo $first; ?&gt;&amp;lastname=&lt;?php echo $last; ?&gt;"&gt;&lt;?php echo "$first" . " " . "$last";?&gt;&lt;/a&gt;;
  </code></pre>
  
  <p>Also, what should I write in the new page? So far on the new page this is what I've wrote: </p>
  
  <pre><code>$first=$row['FName'];
  $last=$row['LName'];
  
  echo "USERNAME: " . "$first";
  </code></pre>
  
  <p>UPDATE:</p>
  
  <pre><code>echo "&lt;tr&gt;
      &lt;td&gt;&lt;b&gt;&lt;center&gt;&lt;a href='usersProfile.php?firstname=" .$first . "&amp;lastname=" . &amp;last . ""&gt;.$info['Name']."&lt;/a&gt;&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;
   &lt;/tr&gt;";
  </code></pre>
  
  <p>This also gives error, but I think it shouldn't? Maybe I've made a simple mistake with the " somewhere, please check if you can find</p>