I wanna update a table by using this update commands but nothing happend. anybody knows why ?!
$db = Zend_Registry::get('db');
$updateData = array(
'user_type' => 0
);
$updateWhere = array(
'username = ?' => 'admin'
);
$res = $db->update('phpbb3_users', $updateData, $updateWhere);
As this code is working for me to update
$updateData = array(
'user_type' => 0
);
$updateWhere = array(
'username' => 'admin'
);
or
$updateWhere = "username = 'admin'";
$db->update('phpbb3_users', $updateData, $updateWhere);
hope it will sure solve your issue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.