I've got an insert statement where there is a memo field that can easily contain quotes or single quotes or apostrophes. I cannot get it to insert I have tried with replacing the aposatrophe with a \', doesn't like it i have also tried
if (get_magic_quotes_gpc()==1) {
$notes = stripslashes(ereg_replace('"','"',$_POST["other_notes"])) ;
} else {
$notes = addslashes ( $string );
}
the following is the sql statement:
Insert into lead_lines(empID, leadID, date_, notes) VALUES(1,14,'8/19/2005','
This guy seems like a real easy going dude. Might've been high when he ordered.')
How can I make the database except this???
It's stressing me out.
Thanks