<?php
	include("conn.php");
	$username = "";
	$err = "";

	if ($_SERVER['REQUEST_METHOD'] == "POST"){
	 
		$username = trim($_POST['username']);
		
		if(empty($err))
		{
		    $sqla = mysqli_query($conn,"UPDATE hastacalita_phalitansa_zehn SET sthiti='0'");
			$sql = "UPDATE hastacalita_phalitansa_zehn SET sthiti='1' WHERE sankhye=$username";

			$conn->query($sql);
			if ($conn->query($sql) === TRUE) {
				header("Location: wingo10min.php");
			} else {
				echo '<h1  style="text-align: center;" > Does not Exists</h1>';
			}
		
		}
	}
?>