faccio un esempio perchè non saprei spiegarlo altrimenti
nella var $prova ho la stringa 'd'amato'
se cerco di fare una query dove il campo where e del tipo...
... WHERE nomecampo='$prova'
mi da il seguente errore che dipende dalla presenza della '
ERRORE NELLA QUERY: 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 'Amato'' at line 1
Come posso risolvere questo problema?