这是代码:
//check if the starting row variable was passed in the URL or not
if (!isset($_GET['pg']) or !is_numeric($_GET['pg'])) {
//we give the value of the starting row to 0 because nothing was found in URL
$startrow = 0;
//otherwise we take the value from the URL
} else {
$startrow = (int)mysql_real_escape_string($_GET['pg']);
}
每当我尝试添加 mysql_real_escape_string(); 到!isset 中的 $_GET['pg'),代码不执行,我没有收到错误消息。