<?php 
require '../assets/config-data.php';

$botxt = mysqli_real_escape_string($data, $_REQUEST['turnamen-text']);

$updatestatus = "UPDATE change_text SET turnamen_text = '$botxt'";
$bindstats = mysqli_query($data, $updatestatus);

if($bindstats) {
    echo '
    <script>
        alert("Turnamen Text Successfully Change!!");
        window.location.href = "../dashboard.php?hal=turnamen";
    </script>
    ';

} else {

    echo '
    <script>
        alert("ERROR on Change!!");
        window.location.href = "../dashboard.php?hal=turnamen";
    </script>
    ';

}

?>