title: How can i connect to an excel as data source using PHP
body: <p>I have the below code but it always returns </p>
  
  <blockquote>
    <p>"FATAL ERROR syntax error, unexpected 'is' (T_STRING), expecting ','
    or ')' on line number 6"</p>
  </blockquote>
  
  <p>there are no hidden characters, is there anything that I missed? </p>
  
  <pre><code> &lt;?php
      $excelFile = realpath('C:\Users\pc09758\Desktop\Complete Web Developer Codes\1.html\My Project\YUMS\YUMS.xlsx');
      $excelDir = dirname($excelFile);
      $connection = odbc_connect("Driver={Microsoft Excel Driver (*.xlsx)};DriverId=790;Dbq=$excelFile;DefaultDir=$excelDir" , '', '');
      $sql = "SELECT A, B, C FROM Sheet1";
      $results = odbc_exec($connectionString, $sqlQuery);
      while(odbc_fetch_row($results))
      { 
          $output1 = odbc_result($results, 1); 
          $output2 = odbc_result($results, 2); 
          $output3 = odbc_result($results, 3); 
      }
  
      print(“Excel Data”); 
  
      print("$output1 ");  
  
      print("$output2 "); 
  
      print("$output3 ");
  
      print(“”);
  
      odbc_close($connectionString);
  ?&gt; 
  </code></pre>