Notice: Undefined index: page in E:PHPtest.php on line 14
2018-09-07 15:14
阅读:219
治標不治本的就是將內的reporting部份修改,讓notice不顯示
error_reporting = E_ALL; display all errors, warnings and notices
改成
error_reporting = E_ERROR & ~E_NOTICE & ~E_WARNING
不然
isset($_GET[page])做個if-else判斷!!
----修正後原始碼如下----
if(isset($_GET[page]))$page=$_GET[page];
else $page=1;
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:Notice: Undefined index: page in E:PHPtest.php on line 14
文章链接:http://soscw.com/essay/14265.html
文章标题:Notice: Undefined index: page in E:PHPtest.php on line 14
文章链接:http://soscw.com/essay/14265.html
评论
亲,登录后才可以留言!