title: Php/SQL/DB2 special characters in where clause
body: <p>I am trying to SQL a DB2 database (on an iSeries) using PHP and "DB2_exec"- not mysql.</p>
  
  <p>I have these characters in my <code>WHERE</code> clause (variable <code>$EncSSN</code>) which cause the SQL statement to stop: <code>ðIn*Éæng</code> “"Ò×ÑRÈ•`</p>
  
  <p>The SQL is constructed as:</p>
  
  <pre><code>select EENUM, EESSN 
  from EEMAST 
  where EESSN = '$EncSSN'
  </code></pre>
  
  <p>The field in the table EESSN contains encrypted values.
   - I get no errors and no log entries. The html renders a blank page.
   - I have tried replacing (str_replace) quotes, single quotes, period, etc with escape character '\'
   - I can't use mysql_real_escape_string because I am loading the db2_connect resource.</p>
  
  <p>If I change the SQL statement above's <code>where</code> to select a value from a different field, my html is rendered properly.</p>
  
  <p>Can you think of anyway I can accomplish this?</p>
  
  <p>Steven</p>