title: Links in PHP echo
body: <p>You may have seen from my previous questions, I'm brand new to PHP (and coding) and I'm stuck with this.</p>
  
  <p>I've created this code (try not to cringe):</p>
  
  <pre><code>&lt;?php
  $result = mysql_query("SELECT `user_id`, `username`, `email` FROM `users` WHERE `approved` = '0' ORDER BY `username`;");
  
      echo "&lt;table&gt;";
          while($row = mysql_fetch_array($result))
          {
          echo "&lt;tr&gt;&lt;td align=center&gt;" . htmlspecialchars($row['username']) . "&lt;/td&gt;&lt;td&gt; | &lt;/td&gt;&lt;td align=center&gt;" . htmlspecialchars($row['email']) . " &lt;/td&gt;&lt;td&gt; | &lt;/td&gt;&lt;td&gt;&lt;a href=\"approve_user.php?phpuser_id=$row['user_id']\"&gt;&lt;font color=\"green\"&gt;Approve&lt;/font&gt;&lt;/a&gt; | &lt;/td&gt;&lt;td&gt;&lt;a href=\"deny_user.php?user_id=$row['user_id']\"&gt;&lt;font color=\"red\"&gt;Delete&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;";
          }
      echo "&lt;/table&gt;";
  ?&gt;
  </code></pre>
  
  <p>It connects to the database in another file, returns all of the results successfully etc. However, the problems come when I try adding the 'Approve' and 'Delete' links. I want the approve link to go to <code>approve_user.php?user_id=$row['user_id']</code> and I want the delete link to go to <code>deny_user.php?user_id=$row['user_id']</code>. </p>
  
  <p>I'm getting the error:</p>
  
  <pre><code>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\liste\approve.php on line 22
  </code></pre>
  
  <p>Line 22 is the echo in the while loop. I know I've messed up big time on that line somewhere, but for the life of me I can't figure out where. Help is appreciated. Thanks!</p>