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