ciao,
ho tre condizioni:
- if (evento1 ){
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
}
if (evento2 ){
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
}
if (evento3 ){
$stringa13="INSERT INTO c_agenda (titolo_evento) VALUES ('$titolo_evento'";
$rs_query13=mysql_query($stringa13);
$msg = "OK";
}
else {
$msg = "ERRORE";
}
il problema è che anche quando l'evento1 o l'evento2 risultano giusti anzichè stamparmi OK mi stampa ERRORE, invece l'evento3 funziona correttamente. Dove sbaglio?

Rispondi quotando