title: php server could not find driver
body: <p>I'm trying to set up the internal php server.  When I run it I get the following message:</p>
  <pre><code>Fatal error: could not find driver in 
  E:\webProjects\skipper\drydockx\includes\functions.php on line 50
  </code></pre>
  <p>line 50 of the functions.php file: (at the bottom)</p>
  <pre><code>function query(/* $sql [, ... ] */)
  {
      // SQL statement
      $sql = func_get_arg(0); 
  
      // parameters, if any
      $parameters = array_slice(func_get_args(), 1);  
  
      // try to connect to database
      static $handle;
      if (!isset($handle))
      {
          try
          {
              // connect to database
              $handle = new PDO(&quot;mysql:dbname=&quot; . DATABASE . &quot;;host=&quot; . SERVER, USERNAME, PASSWORD);
  
              // ensure that PDO::prepare returns false when passed invalid SQL
              $handle-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
          }
          catch (Exception $e)
          {
              // trigger (big, orange) error
              trigger_error($e-&gt;getMessage(), E_USER_ERROR);  //LINE 50
              exit;
          }
      }
  </code></pre>