title: PDO or MSSQL_connect - in PHP 5.3
body: <p>I am working on a website that runs by MYSQL and Linux Php 5.3 - and i need to work with this as well as a remote MSSQL database.</p>
  
  <p>I read that PDO this is the way to connect to MSSQL.
  It though seems there are both a PDO and a more familiar mssql_connect solution.
  I have little to no experience with either PDO or mssql_connect.</p>
  
  <p>On the PHP documentation i find:</p>
  
  <p>Mssql_connect - The familiar expression:</p>
  
  <pre><code> &lt;?php
   // Create a link to MSSQL
   $link = mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi');
  
   // Select the database 'php'
   mssql_select_db('php', $link);
   ?&gt;
  </code></pre>
  
  <p>PDO - Which i haven't tried before - which needs a driver !(?) :</p>
  
  <pre><code> &lt;?php
   /* Connect to an ODBC database using driver invocation */
   $dsn = 'mysql:dbname=testdb;host=127.0.0.1';
   $user = 'dbuser';
   $password = 'dbpass';
  
   try {
   $dbh = new PDO($dsn, $user, $password);
   } catch (PDOException $e) {
   echo 'Connection failed: ' . $e-&gt;getMessage();
   }
   ?&gt;
  </code></pre>
  
  <p>So what to choose and why ?</p>