In a database I done i included a comment colum
but when I tested it and wrote as comment:
-> I haven't got it to work <-
the entry wasn't added
and I realized why it is the -> ' <- in dosen't
how should I do if one writes a word with ' in?
Im using PHP and MySQL
here is the sql syntax thats troubling me when $comment="I haven't got it to work";
Code:
$insertcard="INSERT INTO cards(brand, type, name, comp, comment) VALUES('$brand', '$type', '$name', '$comp', '$comment')";