在带有MySQL DB的codeigniter中执行以下代码,这引发了我这个SQL语法错误,我对mysql不太了解,所以请原谅我的知识
if($data['action'] == 'deleterecord') {
$tableName=decrypttext($this->input->post('tableName'));
$fieldid = explode('|',decrypttext($data['id']));
$save['updateDate']=date("Y-m-d H:i:s");
$save['updateID']=$data['uid'];
$save['updateIP']=$_SERVER['REMOTE_ADDR'];
$save['isActive']=0;
$this->db->where($fieldid[2],$fieldid[1]);
$this->db->update($fieldid[3],$save);
redirect("member/{$data['control']}/{$data['module']}/{$data['attribute']}/");
}
我要
错误号:1064
您的SQL语法有误;
检查与您的MariaDB服务器版本相对应的手册,以在'SET updateDate ='2019-11-28 10:26:19',updateID ='1503',updateIP ='171'在第1行UPDATE SET附近使用正确的语法updateDate ='2019-11-28 10:26:19',updateID ='1503',updateIP ='xxxx',isActive = 0 WHERE ='65'
文件名:controllers / Member.php行号:1566
需要帮助来检查此脚本,谢谢。