I still can't get it to work. The parse error is gone, but it opens to a non existent url.
My code now looks like this:
// Build Next Link
if($page < $total_pages){
$next = ($page + 1);
$next_page = $_SERVER['PHP_SELF'];
$next_page .= "?page=$next";
$next_page .= "&SelectID=$SelectID";
echo $next_page;
echo "<a href='<?=$next_page?>'>Next Page</a>";
}
This returns Page No Found with this url
http://www.aarda.org/<?=/show_survey_results2.php?page=2&SelectID=70?>
aarda.org is the charity I volunteered to do this for.