【发布时间】:2014-04-10 01:36:03
【问题描述】:
$cate = $_REQUEST['cate'];
$fromdate = $_REQUEST['from'];
$to = $_REQUEST['to'];
$ascend = $_REQUEST['ascend'];
注意:未定义的索引:cate in 注意:未定义的索引:从in 注意:未定义索引:to in 注意:未定义的索引:上升
$limit = 10;
$page = $_GET['page'];
if($page)
$start = ($page - 1) * $limit;
else
$start = 0;
注意:未定义的索引:在 $page = $_GET['page'];
收到这些通知,但有时会消失。有什么问题吗?。 *顶部部分已解决*
现在得到以下行的未定义变量
if ($cate!='')
if ($fromdate !='' && $to!=''){
if ($ascend!=''){
未定义变量:cate 未定义变量:从日期 未定义变量:上升
【问题讨论】:
-
你需要检查索引是否存在
isset($_GET['page']),总是。
标签: php error-handling syntax-error isset