Which string(in query) are empty? : <p>So how to detect which string are empty in the query? I mean:
I have few WHERE clause in one query</p>

<pre><code>$query = SELECT var FROM table WHERE var = '$y';
</code></pre>

<p>and how can I detect which "$y" has no result? </p>

<p>I know I can use <code>if($y)</code>, but how can I detect which was empty?</p>
