title: Parse error Unexpected } in if-else block
body: <p>I have been searching on SO for over an hour but couldn't get my issue resolved. For some reason there is error on page as Parse Error: syntax error unexpected } in line 262. It is closing brackets for the else condition. </p>
  
  <p>I removed else condition, the code ran smoothly. Then I reverted back and removed everything inside else condition but still the error is same, I am confused why the closing bracket is unexpected.</p>
  
  <p>Here is the code</p>
  
  <pre><code>if(isset($_POST['sendEmailNotification'])){
  
  $keyword = $_POST['sendEmailNotification'];
  $sql = "SELECT * FROM team where keyword = '$keyword'" ;
  $sql_result = mysqli_query($conn,$sql) or die (mysqli_error($conn));
  while ($row = mysqli_fetch_assoc($sql_result)){
      $abcd = $row; 
  } 
  
  $htmlContent = file_get_contents ("email_template_header.php"); 
  $registerURL = $siteURL.'/register/';
  
  if ($abcd['claimed'] == 1) {
  
      $htmlContent .= "&lt;p&gt;Hey,&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Hope you're doing well!!!&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Someone has submitted an image related to your business on www.trustedbusiness.reviews. He/She might be your customer or may be your employee/ex-employee.&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;You can approve the image just by following these simple steps:&lt;/p&gt;";
      $htmlContent .= "&lt;ol&gt;";
      $htmlContent .= "&lt;li&gt;View Business Center&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Click on Business Name&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Select 'Image' option from sidebar&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Approve the 'Image' &amp; you're done&lt;/li&gt;";
      $htmlContent .= "&lt;/ol&gt;";
      $htmlContent .= "&lt;p&gt;If you need any help or have any suggestions to make the User Experience better. Please feel free to contact Trusted Business Reviews team.&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Thanks&lt;/p&gt;";
  
  }
  else {
  
      $htmlContent .= "&lt;p&gt;Hey,&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Hope you're doing well!!!&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Someone has submitted an image related to your business on www.trustedbusiness.reviews. He/She might be your customer or maybe your employee/ex-employee.&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Uh-oh!&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;You haven't claimed your business on Trusted Business Reviews? No problem!&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;You can claim this by following these simple &amp; super easy steps:&lt;/p&gt;";
      $htmlContent .= "&lt;ol&gt;";
      $htmlContent .= "&lt;li&gt;Register here&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Open your Business Listing Page&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Click on 'Claim This Business'&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Enter your domain email address&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Enter Verification Code&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;You're Done&lt;/li&gt;";
  
      $htmlContent .= "&lt;/ol&gt;";
      $htmlContent .= "&lt;p&gt;You can make the desired changes in the information (if needed) after 'claim this business' process.&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Later, You can approve the image just by following these simple steps:&lt;/p&gt;";
      $htmlContent .= "&lt;ol&gt;";
      $htmlContent .= "&lt;li&gt;View Business Center&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Click on Business Name&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Select 'Image' option from sidebar&lt;/li&gt;";
      $htmlContent .= "&lt;li&gt;Approve the 'Image' &amp; you're done&lt;/li&gt;";
      $htmlContent .= "&lt;/ol&gt;";
      $htmlContent .= "&lt;p&gt;If you need any help or have any suggestions to make the User Experience better. Please feel free to contact Trusted Business Reviews team.&lt;/p&gt;";
      $htmlContent .= "&lt;p&gt;Thanks&lt;/p&gt;";
  }
  $htmlContent .= file_get_contents ("email_template_footer.php"); 
  $to = $abcd['b_email'];
  
  require 'PHPMailerAutoload.php';
  
  $mail = new PHPMailer;
  $mail-&gt;isSMTP();
  $mail-&gt;Host = 'localhost';
  $mail-&gt;SMTPAuth = false;
  $mail-&gt;SMTPSecure = 'tls';
  $mail-&gt;Port = 25;
  $mail-&gt;setFrom('abc@mail.com', 'ABC');
  $mail-&gt;addAddress($to);
  $mail-&gt;isHTML(true);
  $mail-&gt;Subject = 'New Image Uploaded';
  $mail-&gt;Body = $htmlContent;
  $mail-&gt;send();
  $mail-&gt;clearAddresses();
  }
  </code></pre>