我有一个小问题,我想它来自这里:
if($thepage == "") {
$strSQL = "SELECT * FROM Banlist LIMIT 0 , 15";
}
if($thepage == 2) {
$strSQL = "SELECT * FROM Banlist LIMIT 15 , 30";
}
if($thepage == 3) {
$strSQL = "SELECT * FROM Banlist LIMIT 30 , 45";
}
if($thepage == 4) {
$strSQL = "SELECT * FROM Banlist LIMIT 45, 60";
}
if($thepage == 5) {
$strSQL = "SELECT * FROM Banlist LIMIT 60 , 75";
}
if($thepage == 6) {
$strSQL = "SELECT * FROM Banlist LIMIT 75 , 90";
}
if($thepage == 7) {
$strSQL = "SELECT * FROM Banlist LIMIT 90 , 105";
}
if($thepage == 8) {
$strSQL = "SELECT * FROM Banlist LIMIT 105 , 120";
}
在我的浏览器中,在 PHP 代码的 HTML 部分之前,它向我显示了以下内容:
} } } } } } } } } } } } } } }
似乎是什么问题?
PS:我想编写一些代码,使我成为这样的页面浏览器:
(page: 1 2 3 4 5 ... LAST)