title: How to connect to MS SQL Server 2016 from PHP 7
body: <p>I'm attempting to insert rows in table in a database hosted in MS SQL Server 2016 installed in my local computer. 
  Here is my snippet <code>$dbc = mssql_connect('MwangiCJ-PC/mwangi','sqluser','xxxx','mydb');</code> </p>
  
  <p>I have tried out the answer from 
  <a href="https://stackoverflow.com/questions/12282936/mssql-connect-with-php5-and-mssql2012-express">mssql_connect() with PHP5 and MSSQL2012 Express</a> but I still get the error <code>Fatal error: Uncaught Error: Call to undefined function mssql_connect()</code></p>
  
  <p>When i run a simple <code>phpinfo()</code> I can see that I already have both <strong>sqlsrv</strong> and <strong>pdo_sqlsrv</strong> available. </p>
  
  <p>Am I missing anything else? Please help. Thank you.</p>