prova così

Codice PHP:
<? 
if ($pagina==3){ 
$sql "INSERT INTO b_serviziounghie (id_operatori, id_agenti, id_tecniche, id_centri, esito, note_calling, ora_ins_dati, data_ins_dati, cliente) 
VALUES ('
$id_operatori', '$id_agenti', '$id_tecniche', '$id_centri', '$esito', '$note_calling', curtime(), curdate(), '$cliente')"
mysql_query($sql$conn) or die ($sql); 
$query2 "SELECT * FROM b_serviziounghie WHERE id_serviziunghie='".$_GET['centro']."'"
$sql2 mysql_query($query2$conn); 
$row2 =mysql_fetch_array($sql2); 
$id_serviziunghie mysql_insert_id(); 
if (
$row2['esito']=="appuntamento"){ 
header("Location: inserimento4_serviziounghie_new.php"); 
} else { 
header("Location: inserimento_serviziounghie_new.php"); 
}