Salve a tutti ho un problema, dovrei modificare due campi di una tabella e non riesco a farlo anche se sembra strano perchè il codice mi sembra corretto ve lo posto, se riuscite a darmi una mano vi ringrazio.
//connection to the database
$dbhandle = @mysql_connect(HOST, USERNAME, PASSWD)
or die("Unable to connect to MySQL");
//select a database to work with
$selected = @mysql_select_db(DB_NAME,$dbhandle)
or die('Selezione del database fallita.');
$works=$_POST['LAVORI_ESEGUITI'];
$sintomo=$_POST['descrizione_intervento'];
$tipom=$_POST['tipo_macchina'];
$stato=$_POST['stato'];
$query="UPDATE lab_ticket SET lavori_eseguiti = $works WHERE tipo_macchina=$tipom AND descrizione_intervento=$sintomo";
$result=mysql_query($query);
$query2="UPDATE lab_ticket SET stato = $stato WHERE tipo_macchina = $tipom AND descrizione_intervento=$sintomo";
$result2=mysql_query($query2);
//header('Location: ./index.php');
?>