ti basta rivedere quell'if che controlla $_GET['ordine']
Codice PHP:
.....
$tris = new Tris( 1 , 2 , 3 );
if(isset($_GET['ordine'])){{
$operazione = $_GET['ordine'];
if($operazione == "inc"){
$tris->set_U($tris->get_U() +1); // LINEA 18
$tris->set_D($tris->get_D() +1);
$tris->set_T($tris->get_T() +1);
}
if($operazione == "dec"){
$tris->set_U($tris->get_U() -1);
$tris->set_D($tris->get_D() -1);
$tris->set_T($tris->get_T() -1);
}
}
.....