Esempio n. 1
0
 private static function initialize()
 {
     // Create connectio
     self::$conn = new mysqli(self::$servername, self::$username, self::$password, self::$dbname);
     // Check connection
     if (self::$conn->connect_error) {
         return -1;
     }
     return 0;
 }