コードは次のとおりです。
//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')に対して、コードは実行されず、エラーメッセージは表示されません。