Help with an if and else statement logic
<p>The code below is just a sample of the format I have</p>

<pre><code> isset($_GET['ids'])?$ids=$_GET['ids']:null;

 isset($_POST['idc'])?$idc=$_POST['idc']:null;

function ShowCart()

  {

   $que = "SELECT 

   FROM 
    cart 

   LEFT OUTER JOIN ...
       ON ...
   LEFT OUTER JOIN... ON... 


   WHERE ";
  $result = mysql_query($que);


while(){
  if (isset($ids)) { 
     display something
    for (){
      if(){
          } // end of if inside the for loop
        }// end of for loop
       }
  elseif($idc &amp;&amp; $ids=null) {
           display something different
       }
  else{ 
       display nothing has passed 
      }
   }//end of while loop
}//end of showcart(); function
</code></pre>

<p>that's the formatting above I wonder why the if and elseif are not getting the isset() as the if and elseif argument.</p>

<p>I have debug the through the whole code and the print_r of GET and POST has values through the whole code.</p>

<pre><code>print_r($_POST);
print_r($_GET);
</code></pre>
