Example #1
0
 public static function open()
 {
     global $config;
     if (self::$_sess_db = mysql_connect($config['db_host'], $config['db_user'], $config['db_pass'])) {
         return mysql_select_db($config['db_name'], self::$_sess_db);
     }
     return false;
 }