title: Parse error: syntax error, unexpected '$query' (T_VARIABLE)
body: <p>Evening all,</p>
  
  <p>I am having an issue with this script and i'm hoping one of you fine programmers could let me know where the error is.</p>
  
  <pre><code>&lt;?php
  
  mysql_connect("127.0.0.1", "root", "") or die (mysql_error());
  echo "Connected to MYSQL ";
  mysql_select_db("tutorial") or die (mysql_error());
  echo "Connected to Data Base"
  $query = "SELECT * FROM forr1";
  $result = mysql_query ($query) or die (mysql_error());
  while ($row = mysql_fetch_array($result)) {
          echo $row['input1'];
  
  
  ?&gt;
  </code></pre>
  
  <p><strong>The Output</strong></p>
  
  <pre><code>Parse error: syntax error, unexpected '$query' (T_VARIABLE) in C:\Program Files (x86)\EasyPHP-12.1\www\Output.php on line 7
  </code></pre>
  
  <p>I must be missing something significant because no matter how i try and rework it i get the same error.</p>
  
  <p>Thanks for your time</p>
  
  <p>Ben</p>