It's not really related to the code specifically.
I'm sure someone here will understand the very generic problem ...
Say I've got a sentence in a textbox named "field01" (ignore the quotes)
"i've got a problem"
And when I try to submit that using
$sql = "insert into whatever (whatever) values ('$field01')";
odbc_exec($db,$sql)
I can SEE why it's causing the error ... the ' in "i've" is interupting the "'" in $sql but I need to know how to escape that.