Ejemplo n.º 1
0
 public static function setInstance($user, $password, $host, $dbName)
 {
     if (self::$inst == null) {
         self::$inst = new self($user, $password, $host, $dbName);
     }
     return self::$inst;
 }
Ejemplo n.º 2
0
 public static function setInstance($user, $password, $host, $dbName)
 {
     if (self::$inst == null) {
         self::$inst = new self($user, $password, $host, $dbName);
         //            self::$inst->query('set names utf8');
     }
     return self::$inst;
 }