在你的给出的页上的连接上
例如
echo "<a href='check.php?page=$pagecount'><font color=#000000>尾页</font></a> ";
把查询条件也写上