Insert a string which contain the " ' "

wxdqz

New Member
Hi!
I'm an italian boy. I want use mysql for my website, but I have a serious problem.

I want to insert a variable (string type) in a table of database, es.:

$var="I don't understand";
insert into ...... value ('$var', 'ecc....');

This script doesn't work because in the string there is a " ' ". Have you got a solution????

Also using the function "stripslashes" the script doesn't work.

many thanks,
JJ
 
Back
Top