title: For some reason my PHP code isn't working
body: <p>So my code is supposed to print out all of the users of my game in ASC (ascending) order by ID. It does this fine, but for some reason it won't print their names correctly...</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;table width="90%" border="1" style="border-collapse:collapse;border:4px solid #9f0606;"&gt;
    &lt;tr height="41"&gt;
      &lt;td align="center" colspan="2" style="border-collapse:collapse;border:4px solid #9f0606;"&gt;&lt;strong&gt;User List&lt;/strong&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;?
  $presult = mysql_query("SELECT * FROM users ORDER BY id ASC") or die(mysql_error());
  $b = 0;                    
  while($row = mysql_fetch_array($presult)) {
  ?&gt;
    &lt;tr height="31"&gt;
      &lt;td width="80%" style="border-collapse:collapse;border:4px solid #9f0606;" align="left"&gt;
        &lt;?php
  $b = $b + 1;
  if($row['account_type'] == 1){
  echo "&lt;p&gt;&lt;a style=\"color:black;text-decoration:none;\" href=\"view_profile.php?id=". $row['id'] ."\"&gt;".$row['username']."&amp;nbsp;[".$row['id']."]&lt;/a&gt;&lt;/p&gt;";
  ?&gt;
       &lt;/td&gt;
     &lt;td width="20%" style="border-collapse:collapse;border:4px solid #9f0606;" align="left"&gt;
  &lt;?
  echo "&lt;p&gt;Level:&amp;nbsp;".$row['level']."&lt;/p&gt;";
  ?&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?
  }elseif($row['account_type'] == 2){
  ?&gt;
  echo "&lt;p&gt;&lt;a style=\"color:#CC0000;text-decoration:none;\" href=\"view_profile.php?id=". $row['id'] ."\"&gt;".$row['username']."&amp;nbsp;[".$row['id']."]&lt;/a&gt;&lt;/p&gt;";
  ?&gt;
    &lt;/td&gt;
   &lt;td width="20%" style="border-collapse:collapse;border:4px solid #9f0606;" align="left"&gt;
  &lt;?
  echo "&lt;p&gt;Level:&amp;nbsp;".$row['level']."&lt;/p&gt;";
  ?&gt;
  &lt;/td&gt;
   &lt;/tr&gt;
  &lt;?
  }else{
  ?&gt;
  echo "&lt;p&gt;&lt;a style=\"color:black;text-decoration:none;\" href=\"view_profile.php?id=". $row['id'] ."\"&gt;".$row['username']."&amp;nbsp;[".$row['id']."]&lt;/a&gt;&lt;/p&gt;";
  ?&gt;
   &lt;/td&gt;
  &lt;td width="20%" style="border-collapse:collapse;border:4px solid #9f0606;" align="left"&gt;
  &lt;?
  echo "&lt;p&gt;Level:&amp;nbsp;".$row['level']."&lt;/p&gt;";
      ?&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;?
  }
  }
  ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Sorry that it's not very clean or organized, having to space everything 4 times gets annoying so I let it look a bit sloppy.</p>
  
  <p>Here's a screenshot of what the code looks like for me in-browser:</p>
  
  <p>(I cant post images because I don't have 10 reputation yet apparently, but basically the screenshot shows the username/id part looking like this:</p>
  
  <pre><code>echo "
  
  `this row in blue`".$row['username']." [".$row['id']."]
  
  ";?&gt;
  </code></pre>
  
  <p>and the level part looking exactly how I want it, like this:</p>
  
  <pre><code>Level: 12)
  </code></pre>
  
  <p>As you can see, the "level" part of the loop (printing the user's level) works fine. If you can find the error in the rest of my code, that would be awesome. Oh and by the way, where it says ($row['account_type'] == 1), none of the users are account_type == 1, the first one is account_type == 6, and the second one is account_type == 2. They all print exactly the same. Thanks!</p>
  
  <p>Image here:</p>
  
  <p><img src="https://i.stack.imgur.com/QroNT.png" alt="enter image description here"></p>