Forum Moderators: coopster
well, that string, as while as a few others are submitted to a php script that insterts them into a few columns in the database.
so for my query I say
$query =
"INSERT INTO blog_posts (keywords, body, timestamp, picpost, related_posts)
VALUES ('"
. $keywords . "', '"
. $body . "', '"
. $timestamp . "', '"
. $picpost . "', '"
. $related_posts . "')"
as you can see, when it encounters an apostrophe, that causes it to break the code.
so how can I write it to accept apostrophes or any other characters?