title: Parse Error in PHP Code (unexpected T_VARIABLE)
body: <p>I am trying to run the following code:</p>
  
  <pre><code>if ($result = $mysqli-&gt;query($query)) {
  
      /* fetch object array */
      while ($row = $result-&gt;fetch_row()) {
          $query = "INSERT INTO Table2 SELECT s.* FROM Table1 s WHERE id=" . $row[1] . ";"
          $mysqli-&gt;query($query);
          $query = "DELETE FROM Table1 WHERE id=" . $row[1] . ";"
          $mysqli-&gt;query($query);
      }
  
      /* free result set */
      $result-&gt;close();
  }
  </code></pre>
  
  <p>But it's returning:</p>
  
  <pre><code>$mysqli-&gt;query($query);
  </code></pre>
  
  <p>Anyone know what it could be?</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_VARIABLE ... </p>
  </blockquote>