title: DB class wont load
body: <p>I'm trying to connect using a simle db class. For some reason it only print out 
  "Initiate DB class"</p>
  
  <p>test.php
  <code></p>
  
  <pre><code>include 'db.class.php';
  echo 'Initiate DB class';
  $db = new DB();
  echo 'DB class did load';
  </code></pre>
  
  <p>db.class.php</p>
  
  <pre>class DB extends mysqli {
  private static $instance = null;
  private function __construct () {
      parent::init();
      $host = 'localhost'; 
      $user = 'root'; 
      $pass = 'MY_PASS';
      $dbse = 'MY_DB';
      parent::real_connect($host, $user, $pass, $dbse);
      if (0 !== $this-&gt;connect_errno):
          die('MySQL Error: '. mysqli_connect_error());
          //throw new Exception('MySQL Error: '. mysqli_connect_error());
      endif;
      }
      public function fetch ($sql, $id = null, $one = false) {
          $retval = array();
          if ($res = $this-&gt;query($sql)):
              $index = 0;
              while ($rs = $res-&gt;fetch_assoc()):
                  if ($one):
                      $retval = $rs; break;
                  else:
                      $retval[$id ? $rs[$id] : $index++] = $rs;
                  endif;
              endwhile;
              $res-&gt;close();
          endif;
          return $retval;
      }
  </code></pre>
  
  <p>}</p>
  
  <p>I have tried to search my log files for error but they come out empty.</p>