title: Parse error: syntax error, unexpected 'else' (T_ELSE)
body: <p>I edit this code to display a mesaje when select is null and i get this error:</p>
  
  <pre><code> Parse error: syntax error, unexpected 'else' (T_ELSE) in /nginx/user/reports.php on line 235
  </code></pre>
  
  <p>This is code:</p>
  
  <pre><code> $stmt = $mysqli-&gt;prepare("SELECT date, impressions, balance, username FROM reports WHERE username = '$username' and date between '$firstDay' AND '$lastDay'");
      $stmt-&gt;execute();
      $stmt-&gt;store_result();
      $rows = $stmt-&gt;num_rows;
      mysqli_stmt_bind_result($stmt,$date,$impressions,$balance,$username);
         if ($rows &gt; 0){
         while (mysqli_stmt_fetch($stmt)) {   
             $ecpm_t3 = $balance*1000;
         $ecpm3 = $ecpm_t3/$impressions;
      $rate = number_format((float)$ecpm3, 2, '.', '');
       echo"&lt;tr&gt;
              &lt;td class=\"nn\" style=\"text-align:center;\" align=center&gt;$date&lt;/td&gt;
              &lt;td class=\"nn\" style=\"text-align:center;\" align=center&gt;$impressions&lt;/td&gt;
              &lt;td class=\"nn\" style=\"text-align:center;\" align=center&gt;$$rate&lt;/td&gt;
              &lt;td class=\"nn\" style=\"text-align:center;\" align=center nowrap&gt;$$balance&lt;/td&gt;
          &lt;/tr&gt;";
         } else {
          echo"&lt;tr&gt;
              &lt;td colspan=\"4\" class=\"nn\" style=\"text-align:center;\" align=center&gt;Not rows&lt;/td&gt;
          &lt;/tr&gt;";
      }
          }
  </code></pre>
  
  <p>And line 235 is:</p>
  
  <pre><code>   } else {
  </code></pre>
  
  <p>How i can resolve this error ? What is bad ?</p>