ho questo script per aggiornare un database mysql
però mi esce questo erroreCodice PHP:$query = "UPDATE orario2A SET
LUNEDI=$lunedi,
MARTEDI=$martedi,
MERCOLEDI=$mercoledi,
GIOVEDI=$giovedi,
VENERDI=$venerdi,
SABATO=$sabato,
WHERE ORA=$id ;";
$result = mysql_query($query);
if (!$result) {
die("errore nella query" .mysql_error());
}
echo "Query eseguita correttamente !!!!!";
però non so come risolvereCodice PHP:errore nella queryYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Sposi, MARTEDI=Fisica, MERCOLEDI=Matematica, GIOVEDI=Chimica, VENERDI=Promes' at line 2
![]()
mi date una mano ?
Grazie

Rispondi quotando