<?php
include ('conn.php');
$query = "SELECT ordine FROM ordine WHERE nome='lol'";
$result = mysqli_query($conn, $query);
$row = mysqli_fetch_assoc($result);
$numero = $row["ordine"];
if(isset($_POST["aumenta"])){
$numero = $numero+1;
$queryup = "UPDATE ordine SET ordine=".$numero." WHERE nome='lol'";
mysqli_query($conn, $queryup);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Incremento</title>
</head>
<body>
<?php
echo $numero;
?>
<form action="#" method="post">
<input type="submit" name="aumenta" value="Aumenta">
</form>
</body>
</html>