title: If Statement in PHP Function
body: <p>I have a function which outputs a variable in a certain color depending on the contents of said variable, however it is currently outputting the same response to the IF statement even if the IF statement is not true</p>
  
  <pre><code>function info($ride) {
      $query = mysql_query("SELECT * FROM `qtd` WHERE `name` = '$ride'");
      $rideinfo = mysql_fetch_array($query);
  
      $time = $rideinfo["time"];
  
      if ($time != "Unavailable" || $time != "CLOSED") {
          echo "&lt;center&gt;&lt;font color=\"228B22\"&gt;&lt;b&gt;$time&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;";
      }
  
      if ($time == "Unavailable" || $time == "CLOSED") {
          echo "&lt;center&gt;&lt;font color=\"B22222\"&gt;$time&lt;/font&gt;&lt;/center&gt;";
      }
  }
  </code></pre>
  
  <p>Currently <code>$time</code> is always being outputted with #228B22 even if the value of <code>$time = "Unavailable"</code> or <code>"CLOSED"</code></p>