How do I extract a single column from another database?
<p>Why this condition passes even if I change the <code>$_GET</code> variable?</p>

<p>I've this code</p>

<pre><code>elseif(isset($_GET['results']) &amp;&amp; $_GET['results'] == 'reorder' &amp;&amp; 
isset($_GET['sort_column']) &amp;&amp; $_GET['sort_column'] != '' &amp;&amp; isset($_GET['sort_order']) 
&amp;&amp; $_GET['sort_order'] != '' &amp;&amp; $_GET['sort_order'] == 'asc' 
|| $_GET['sort_order'] == 'desc') { /*rest goes here*/ } else {redirect}
</code></pre>

<p>Link returns like this</p>

<pre><code>http://localhost/system/results.php?script_id=2&amp;results=reorder&amp;sort_column=supplier_address&amp;sort_order=desc
</code></pre>

<p>But when I change this <code>sort_column=supplier_address</code> to say for example  <code>sorcodsalumn=supplier_address</code> it doesn't redirect, instead goes ahead, any idea why? But if I simply remove few letters and dont replace with something else it does redirect...</p>

<p>How come if am using this <code>isset($_GET['sort_column']</code> and am modifying <code>sort_column</code> to something else still passes this condition</p>
