title: SQL Server Database Query with PHP
body: <p>I need to get some data from a Microsoft SQL Server database at work. When I have the data I need, I need to make an Excel spreadsheet that can be saved locally on my computer.</p>
  
  <p>I found <a href="http://phpexcel.codeplex.com/" rel="nofollow">PHPExcel</a> which seems to do the job on the Excel part, but what about getting the data from the Database?</p>
  
  <p>I can't seem to find anything that's recent. Only old tutorials.</p>