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