-
errore in query mysql
Ciao raga,
ho una pagina in php e quando vado ad eseguire la seguente query mi da errore, allego entrambe
query
Codice:
UPDATE animale SET nome = '".$nome."' , descrizione = '".$descrizione."' , tipo = '".$tipo."' , adott = '".$adottato."' WHERE id = ".$ni_id
errore
Codice:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
mi potete aiutare? è un'ora che ci spacco sopra la testa...
Grazie
-
a me sembra tutto ok
poi non so se tutti quei punti rompono...
puoi provare anche con:
Codice PHP:
$sql = "UPDATE animale SET nome = '$nome' descrizione = '$descrizione' tipo = '$tipo' adott = '$adottato' WHERE id = '$ni_id'";