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