thinkphp 中save更新数据库成功,但是返回bool(false) 5
$usersDB=M('users');$data['ID']=$result['ID'];$data['UserLogins']=$result['UserLogins...
$usersDB = M ( 'users' );
$data['ID'] = $result['ID'];
$data['UserLogins'] = $result ['UserLogins'] + 1;
$data['LastLogin'] = date ( 'Y-m-d H:i:s', time () );
$data['UserLastIP'] = get_client_ip ();
$data['HISTORY'] = $result ['HISTORY'] . date ( 'Y-m-d H:i:s', time () ) . '|' . get_client_ip () . ',';
$result1 = $usersDB->save($data);
echo $usersDB->getlastsql();//在数据库中sql语句执行是正确的,
dump($result);//返回false
跪求大神帮忙 展开
$data['ID'] = $result['ID'];
$data['UserLogins'] = $result ['UserLogins'] + 1;
$data['LastLogin'] = date ( 'Y-m-d H:i:s', time () );
$data['UserLastIP'] = get_client_ip ();
$data['HISTORY'] = $result ['HISTORY'] . date ( 'Y-m-d H:i:s', time () ) . '|' . get_client_ip () . ',';
$result1 = $usersDB->save($data);
echo $usersDB->getlastsql();//在数据库中sql语句执行是正确的,
dump($result);//返回false
跪求大神帮忙 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询