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); } } }
public function edit($table, $key, $value, $qKey, $qValue) { $dataBase = new dbConnection(); $dataBase->connection()->prepare("UPDATE " . $table . " SET " . $key . "='" . $value . "' WHERE " . $qKey . "='" . $qValue . "' ")->execute(); }