title: PHP getting records from SQL server using Sqlsrv_query
body: <p>I have a database table with this name <code>dbo.[DATABASE$Employee]</code> and I would like to fetch records from the table but I get an error message</p>
  <blockquote>
  <p>Notice: Undefined variable: Employee in C:\xampp\htdocs\kekportal\test1.php on line 24</p>
  <p>Notice: Undefined variable: Employee in C:\xampp\htdocs\kekportal\test1.php on line 28</p>
  <p>Notice: Undefined variable: Employee in C:\xampp\htdocs\kekportal\test1.php on line 28</p>
  </blockquote>
  <p>My code:</p>
  <pre><code>$pdo = new PDO(&quot;sqlsrv: Server=U4BUO1D;Database=AmanfoHR&quot;,&quot;**&quot;,&quot;**&quot;);
  $stmt = $pdo-&gt;prepare(&quot;SELECT
  dbo.[DATABASE$Employee].No_ AS empID,
  dbo.[DATABASEG$Employee].[First Name] AS fname
  FROM
  dbo.[DATABASE$Employee]&quot;);
  $stmt-&gt;execute(); 
  $rows = $stmt-&gt;fetchAll(PDO::FETCH_ASSOC);
  foreach ($rows as $row) {
      echo $row['fname'];
  }   
  </code></pre>