title: Is it possible to add a parameter in an IF condition?
body: <p>I'd like to display data from tables. Some user may have only certain data. I have this parameter: </p>
  
  <pre><code>if($person == "nonmember"){
      $st_show = ' == 3'; //For non member show rows with status of 3
  }else{
      $st_show = ' &lt;&gt; 3'; //For member show rows with status of not 3. Status may dynamically increased and changed
  }
  </code></pre>
  
  <p>How can I loop the rows based on the parameter above. Something like this :</p>
  
  <pre><code>if($rows-&gt;STATUS echo $st_show){
      //show data based on $person
  }
  </code></pre>
  
  <p>I know it returns an error. Are there any solutions for me beside than do these limitation in database?</p>