<?php
require_once('session.php');
if ($u['cuid'] == 1) {
$postID = htmlspecialchars(strip_tags(trim($_POST['postID'] ?? '')), ENT_QUOTES, 'UTF-8');
$pemilik = htmlspecialchars(strip_tags(trim($_POST['pemilik'] ?? '')), ENT_QUOTES, 'UTF-8');
$akun = htmlspecialchars(strip_tags(trim($_POST['akun'] ?? '')), ENT_QUOTES, 'UTF-8');
$no_rek = htmlspecialchars(strip_tags(trim($_POST['no_rek'] ?? '')), ENT_QUOTES, 'UTF-8');

$query1 = mysqli_query($conn, "UPDATE `tb_bank` SET `akun` = '$akun', `no_rek` = '$no_rek', `pemilik` ='$pemilik' WHERE userID = '$postID'") or die(mysqli_error());
$_SESSION['notif'] = ['type' => 'success', 'message' => 'Suksess'];
header('Location: ' . $_SERVER['HTTP_REFERER']);
exit;
}