PDO: stripslashes when getting results
问题 I am using PDO prepared statements so it's adding slashes when it's needed before inserting into the database. I was wondering the proper way to get the results and display it on the website without showing the slashes. Is it as easy as just using echo stripslashes($result->message); ? Here is what my queries look like: $database->query('INSERT INTO table_name (field1, field2, field3) VALUES (?, ?, ?)', array($value1, $value2, $value3)); Here is my query method: public function query($query,