Indexing 通知Y-m-d中未定义索引中出错
在我的系统中添加帐户时出现错误 注意Y-m-d中未定义的索引 这是我的密码Indexing 通知Y-m-d中未定义索引中出错,indexing,undefined,datediff,Indexing,Undefined,Datediff,在我的系统中添加帐户时出现错误 注意Y-m-d中未定义的索引 这是我的密码 $date1 = new DateTime($rsnew["expirationdate"]); $date2 = new DateTime($rsnew["Y-m-d"]); $interval = date_diff($date1,$date2)); $rsnew["noofday"]= $interval->format('%a'); $date1 = date("Y-m-d",s
$date1 = new DateTime($rsnew["expirationdate"]);
$date2 = new DateTime($rsnew["Y-m-d"]);
$interval = date_diff($date1,$date2));
$rsnew["noofday"]= $interval->format('%a');
$date1 = date("Y-m-d",strtotime($rsnew["expirationdate"]));
if($date1 > $date2){
$rsnew["status"]= '0';
}else {
$rsnew["status"]= '1';
}
return TRUE;
}
我用的是PHPMaker
感谢您的帮助在使用$rsnew之前,您在哪里定义了它?我正在使用带有参数函数行插入的Phpmaker($rsold,&$rsnew){在使用$rsnew之前,您在哪里定义了它?我正在使用带有参数函数Row_Inserting($rsold,&$rsnew)的Phpmaker{