这是我的代码
$id = $this->user->id;
$data['last_cust_code'] = $a_Search['custcode'];
$data['last_paid_filter'] = $a_Search['paid'];
$data['last_unpd_filter'] = $a_Search['unpaid'];
$data['last_group_field'] = $a_Search['grouping'];
$data['last_session_code'] = $a_Search['session'];
$out = $objDb->update('tblusrusers', $data,array("id = ?"=>$id));
探查器输出
UPDATE `tblusrusers` SET `last_cust_code` = ?, `last_paid_filter` = ?, `last_unpd_filter` = ?, `last_group_field` = ?, `last_session_code` = ? WHERE (id = '70')
Array
(
[1] => TESTAAA
[2] => N
[3] => N
[4] => 1
[5] => 19993E
)
当我直接通过mysql客户端更新时,它的更新正确。
重要提示:当我通过查询选择输出时,我可以看到更新,但不能通过 phpmyadmin.does 它与提交语句有关,我的意思是我的自动提交是错误的吗?对于其他一些使用事务的查询将它会影响我上面的更新查询吗?请帮忙