title: check query string under if condition using codeigniter
body: <p>hey i want to check type of query string in if condition what is the right way to do this pls help . . my url is something like this . .</p>
  
  <pre><code>http://localhost/kccs/index.php/dbcont/addnew?type=moderator
  http://localhost/kccs/index.php/dbcont/addnew?type=member
  </code></pre>
  
  <p>i want to check </p>
  
  <pre><code>if(query string type==moderator)
  {
     //some stuff
  }
  if(query string type==member)
  {
    //some stuff
  }
  </code></pre>
  
  <p>i want to enable query string only two pages
  i find this on another link</p>
  
  <pre><code>parse_str($_SERVER['QUERY_STRING'],$_GET);
  </code></pre>
  
  <p>but i didnot know how to use it..
  how could i do this . . any idea pls help me . .</p>