They often include apostrophes in the text, which when output to a database-generated page display backslashes in front of the apostrophe.
ex: "Welcome to Mike\\\'s page..."
I know this is a fairly common problem but am wondering what code to include that will:
1) keep the slashes from being added in when the form data is input to the table,
and
2) keep them from displaying in the output.
I'm already using "str_replace(Chr(13)," code to display the line breaks from the textarea field...
Code: Select all
$bio=mysql_result($result,$i,"bio");
$bio2=str_replace(Chr(13), "<br>", $bio);any help appreciated in advance..
thanks.
mc