title: Parse error: syntax error, unexpected T_VARIABLE in /home/nil/public_html/php/getuids.php on line 10
body: <p>I'm pretty new to PHP, and after typing up a few lines and testing I ran into an error that I have no idea on how to fix:</p>
  
  <p>Parse error: syntax error, unexpected T_VARIABLE in /home/nil/public_html/php/getuids.php on line 10</p>
  
  <pre><code>&lt;?php
  
  $connection = mysql_connect("localhost", "root", "") or die("connection unsuccessful");
  mysql_select_db("nil_chatModerators")
  
  $query = "SELECT * FROM moderators";
  $result = mysql_query($query);
  
  echo $result;
  
  mysql_close();
  
  ?&gt;
  </code></pre>
  
  <p>Here's a screenshot of everything from phpMyAdmin:</p>
  
  <p>(can't post images yet..) <a href="http://i.imgur.com/LG4Km33.png" rel="nofollow">http://i.imgur.com/LG4Km33.png</a></p>
  
  <p>Thanks for any help in advance!</p>