I try to Insert a word into a database using PHP:
for example $productnaam = je t'aime; (I love u in french) This won't work because when updating productnaam I need to put accents arround '$productnaam' like so. Is there any way I can fix this?
$query = "UPDATE products2
SET hoofdcategorie1 = '$hoofdcategorie1',
subcategorie2 = '$subcategorie2',
subcategorie3 = '$subcategorie3',
artikelnummer = '$artikelnummer',
productnaam = '$productnaam',
infotext = '$infotext',
hoeveelheid = '$hoeveelheid',
eenheidsprijs = '$eenheidsprijs'
WHERE id = '$id'";
Kind regards, PJ