title: PHP If Else Statement Url Issue
body: <p>I have a little problem here and would be glad if anyone can help. I need some advise what operator or script should I use in this case. When my url change from <code>127.0.0.1/index.php</code> to <code>127.0.0.1/index.php?s=abracadabra</code> the:</p>
  
  <pre><code>if($host == '127.0.0.1/index.php') {
      echo'class="active"';
  } else {
  }
  </code></pre>
  
  <p>won't work. I mean it jumps to the <code>else</code> statement. I want it to put the <code>class="active"</code> even the url change from <code>127.0.0.1/index.php</code> to <code>127.0.0.1/index.php?s=abracadabra</code>. Can anyone help?</p>