title: Wamp Server showing Syntax Error widthout any actual Error
body: <p>I created a simple php script for uploading data to a MySQL server using wamp.
  My script is -</p>
  
  <pre><code>&lt;?php
      $server = "127.22.9.0";
      $user = "root";
      $password = "";
      $db = "complaints";
  
      $conn = new mysqli($server, $user, $password, $db);
  
      if ($conn-&gt;connect_error) {  // This is that line 9
          die("Connection failed: " . $conn-&gt;connect_error);
      } 
  
      echo "Connected successfully";
  
      $sql = "INSERT INTO complaints (email, title, details) VALUES ('".$_POST['email']."', '".$_POST['title']."', '".$_POST['dtls']."')";
  
      if ($conn-&gt;query($sql) === TRUE) {
          echo "New record created successfully";
      } else {
          echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
      }
  ?&gt; 
  </code></pre>
  
  <p>When I execute this on wamp server, it shows an error</p>
  
  <pre><code>Parse error: syntax error, unexpected '{' in C:\wamp64\www\index.php on line 9
  </code></pre>
  
  <p>I have thoroughly searched for errors but found nothing.</p>
  
  <p>Can anyone help me in this?</p>
  
  <p><strong>EDIT: I solved my problem but in an unusual way -</strong></p>
  
  <p>I retyped my code and removed some unnecessary spaces and changed the structure of if statement. Now, my code works -</p>
  
  <pre><code>$server = "127.22.9.0";
  $user = "root";
  $password = "";
  $db = "complaints";
  
  $conn = new mysqli($server, $user, $password, $db);
  
  nl2br($_POST['dtls']);
  
  if($conn-&gt;connect_error)
  {
      die("Error: ".$conn-&gt;connect_error);
  }
  
  $sql = "INSERT INTO complaints (email, title, details) VALUES ('".$_POST['email']."', '".$_POST['title']."', '".$_POST['dtls']."')";
  
  if($conn-&gt;query($sql))
  {
      echo "&lt;h1&gt;Success!! Your complaint has been successfully registered!!&lt;/h1&gt;";
  }
  else
  {
      echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
  }
  </code></pre>
  
  <p>The changes are quite unnecessary but it works.</p>