Ejemplo n.º 1
0
 private static function Connect()
 {
     if (!isset(self::$connection)) {
         self::$connection = new mysqli('localhost', 'root', '123456', 'fedifa_wish');
         if (self::$connection->connect_error) {
             die('Connect Error (' . self::$connection->connect_errno . ') ' . self::$connection->connect_error);
         }
     }
 }
Ejemplo n.º 2
0
 public function edit($table, $key, $value, $qKey, $qValue)
 {
     $dataBase = new dbConnection();
     $dataBase->connection()->prepare("UPDATE " . $table . " SET " . $key . "='" . $value . "' WHERE " . $qKey . "='" . $qValue . "' ")->execute();
 }