Notice: Undefined index: page in E:PHP est.php on line 14
程序员文章站
2023-11-03 22:13:28
治標不治本的就是將php.ini內的reporting部份修改,讓notice不顯示 error_reporting = e_all; display all errors...
治標不治本的就是將php.ini內的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;
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:PHP est.php on line 14
-
Notice: Undefined index: page in E:PHP est.php on line 14
-
Notice: Undefined index: page in E:PHP est.php on line 14
-
Notice: Undefined index: page in E:PHPtest.php on line 14_php技巧
-
Notice: Undefined index: page in E:PHPtest.php on line 14_php技巧
-
Notice: Undefined index: page in E:PHPtest.php on line 14的处理方法
-
Notice: Undefined index: page in E:PHPtest.php on line 14_PHP教程
-
Notice: Undefined index: page in E:PHPtest.php on line 14
-
Notice: Undefined index: page in E:PHPtest.php on line 14的处理方法