trying to display something if 3 differnt things dont equal already have a variable with a number, if $number < 2000 and Googlebot != the user agent and user doesnt not have a cookie then i want it to echo else i dont i dont know how to make my if statement <?php $expire=time()+60*60*24*1; setcookie("user", "Alex Porter", $expire); $useragent = $_SERVER['HTTP_USER_AGENT']; $google = “Googlebotâ€; if (strstr($useragent, $google)) { echo "this"; } else { echo ""; } ?>
if (($i > 5) && ($j == 'hello') && (strstr($x, $y) !== false)) echo "<p>The sun and moon and stars have converged.</p>"; Code (markup):
if(($number < 2000) && (!strstr($useragent, “Googlebotâ€)) && (!IsSet($cookiename)){ echo "this"; }else{ //dothisinstead }