在使用AJAX时,我使用此特定查询在Codeigniter中不断收到错误500。怎么了?
foreach($admins as $val){
$admin_id = $val['admin_id'];
foreach($messages_ids as $v){
$id = (int)$v['msg_id'];
$this->db->query('
INSERT INTO sol_message_folder VALUES (?, ?, ?, ?)',
array(1, $id, 'inbound', $admin_id));
}
}
如果我注释掉这个查询,我的AJAX运行正常。我错过了什么吗?