title: php/mySQL - Parse error: syntax error, unexpected T_VARIABLE error
body: <p>I know this is a very frequent question, but for the love of god i cannot find the error in my php code. The error that i'm getting is:</p>
  
  <pre><code>Parse error: syntax error, unexpected T_VARIABLE in ..\virus_scan.php on line 24
  </code></pre>
  
  <p>Hopefully some fresh eyes would bring a new perspective and help me identify the mistake.
  Line 24 is the line where the $sql variable is declared:</p>
  
  <pre><code>      if ($dbs === False)
      {
          print "can't find $database";
      }
  
    //--------------------------------------------------------------------------
    // 2) Query database for data
    //--------------------------------------------------------------------------
  
  $sql = "select unix_timestamp(date(Date_Found)) * 1000 as day, count(Virus_Name) as nb from machine_virus_info where Virus_name!='NULL' group by unix_timestamp(date(Date_Found)) * 1000 ;" 
  $result = mysql_query($sql) or die('SQL Error 1: ' . mysql_error());
  
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
  {
      $array[] =
          array (
              $row['day'],
              $row['nb']
              );
  }
  </code></pre>