Buongiorno a tutti,
Non riesco ad inserire in una tabella, in un campo di tipo TEXT un testo italiano comprensivo di apostrofi.
Ovviamente perchè quando faccio:
l'interprete interpreta l'apice del testo come chiusura dell'insert.Codice PHP:
$InsertNews = "INSERT INTO news VALUES ('$TitoloNews', '$TestoNews')";
(non so se mi capite)
Infatti da questo errore:
Come è possibile inserire apostrofi nel testo senza incombere in errori???INSERT INTO news VALUES ( 'titolo', 'l'idea')You have an error in your SQL syntax near 'l'idea' at line 6
![]()