You need to go through the text that is inputed and replase all ' with \'
This is because the php parser does something like this
if $text = This won't work
"INPUT INTO table (field_one, field_two) VALUES ('$id', '$text')";
is parsed to
"INPUT INTO table (field_one, field_two) VALUES ('1', 'This won't work')";
Andreas Bernhardsen
Graficonn