//搜索查询要同时查询当前页数,第一次的$page默认为0 $sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit {$page},{$pageSize}"; //每次根据 echo ("<a href=search3.php?page=".($page+1)."&StuNum=<?php echo $StuNum ?> >下一页 》</a> \n"); 中的两个参数进行查询
#那是应为在: $sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit {$page},{$pageSize}"; #中$pageSize的值你设为 1 的结果。像: $sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit 0,30"; #这样查询出来的结果,除非你的表中只有1条记录,否则会显示第0到29条记录。
//搜索查询要同时查询当前页数,第一次的$page默认为0
$sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit {$page},{$pageSize}";
//每次根据
echo ("<a href=search3.php?page=".($page+1)."&StuNum=<?php echo $StuNum ?> >下一页 》</a> \n");
中的两个参数进行查询
#那是应为在:
$sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit {$page},{$pageSize}";
#中$pageSize的值你设为 1 的结果。像:
$sql="select*from $table where 时间 like '%$StuNum%' order by ID Limit 0,30";
#这样查询出来的结果,除非你的表中只有1条记录,否则会显示第0到29条记录。