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