I tried asking this question a week ago but got no answer. Hoping to explain it better this time.
My customer can input anything into a textarea and I am saving that to a MySQL table.
how can I replace all of their apostrophes with a double apostrophe so I don't get a bad query?
I tried the following it didn't work.
$description = str_replace("''", "'", $description);