if ('6') { $prev = 'http://'.$_SERVER['HTTP_HOST'].'/search/classic/6'; } ?> if ('6' == '1') { $prev = 'http://'.$_SERVER['HTTP_HOST'].'/search/classic/1'; } ?> if ('8' && '8' <= 10) { $next = 'http://'.$_SERVER['HTTP_HOST'].'/search/classic/8'; } ?>