Select Where And after $
<p>Does anyone know how can I use AND in this case?</p>

<pre><code>$selected="SELECT * FROM Table WHERE t2 = '".$value1."' AND t1 &lt;&gt; '".$value1."' AND t1&lt;&gt; '".$value3."'";
</code></pre>

<p>Thanks.</p>