title: PDO: stripslashes when getting results
body: <p>I am using PDO prepared statements so it's adding slashes when it's needed before inserting into the database.</p>
  
  <p>I was wondering the proper way to get the results and display it on the website without showing the slashes.</p>
  
  <p>Is it as easy as just using <code>echo stripslashes($result-&gt;message);</code>?</p>
  
  <p>Here is what my queries look like:</p>
  
  <pre><code>$database-&gt;query('INSERT INTO table_name (field1, field2, field3) VALUES (?, ?, ?)', array($value1, $value2, $value3));
  </code></pre>
  
  <p>Here is my <code>query</code> method:</p>
  
  <pre><code>public function query($query, $bind=null)
  {
      global $pdo;
  
      # Prepare Statment
      $this-&gt;statement = $this-&gt;pdo-&gt;prepare($query);
  
      # Execute Query
      $this-&gt;statement-&gt;execute($bind);
  }
  </code></pre>
  
  <p><strong>EDIT: <code>get_magic_quotes_gpc</code> was indeed turned on even though WHM (cPanel) said it was off</strong></p>