<?php
include('dbconnect.php');
session_start();

	$tid = mysqli_real_escape_string($connection, $_POST['tid']);
	$status = mysqli_real_escape_string($connection, $_POST['status']);
	
    $query ="UPDATE bankwithdraw SET status='$status' WHERE tid='$tid'";
    $query_run = mysqli_query($connection, $query);
    if($query_run)
    {
		$_SESSION['status'] = "<p style='padding:15px; background: #4E9C81; color: #fff; border-radius:10px;'>STATUS SUCCESSFULLY UPDATED</p>";	
		header('location:../bankwithdraw.php');
	}
    else
    {
		$_SESSION['status'] = "error.. NOT SUCCESSFULLY UPDATED";
		header('location:../bankwithdraw.php');
	}		


?>