You've got the right idea with the GET params, but in the code you posted, [font=monospace]$variable[/font] does not exist before you try to use it. It will be initialized as NULL, which will be converted to 0 when you try to do math on it, and then result in 1 or -1.
If you're trying to deal with a variable you set on a previous page, then you need to pass it to this page somehow - via the link, or by using sessions, for example. It looks like you might be trying to make pagination links…? you could simply do the math beforehand:
<?php
// current page is page #2
$current = 2;
print "<a href=?result=".$current + 1.">»</a><br>" // results in "?result=3"
."<a href=?result=".$current - 1.">«</a><br> "; // results in "?result=1"
You should also know that using [font=monospace]PHP_SELF[/font] (without escaping the value, as you show above) will create a cross-site scripting vulnerability.