single quote in php from java string
<p>I have a java (android) application that uses php to talk to the MS database. The problem is one part in my app. I have a string that is a sql statement, and that string will not insert into the database with the single quotes</p>

<pre><code>String sql = "select * from table where col = 'testing' AND Col2 = 'Tester'";
</code></pre>

<p>I get that in the php script by using: <code>$script = $_REQUEST['Script'];</code></p>

<p>2 things, I want to insert that script into a a column with the datatype char 
and i also want to run that script as well. Thanks!</p>

<p>I am not having the users run there own scripts on my DB. as they check a checkbox it a StringBuilder builds a script upon what they select. So if they check Female or male The String add the Select * from Table where Gender = 'Female' etc. </p>
