when parse the form data.
i need to replace ' with \' . so the value could be insert to mysql.
unfortunately below seems not work at all.
so what is the correct code for it?
$value =~ tr/'/ \'/;
Thanks
i need to replace ' with \' . so the value could be insert to mysql.
unfortunately below seems not work at all.
so what is the correct code for it?
$value =~ tr/'/ \'/;
Thanks