1

この更新コマンドを使用してテーブルを更新したいのですが、何も起こりません。誰もが理由を知っていますか?!

$db = Zend_Registry::get('db');
$updateData = array(
'user_type' => 0
);
$updateWhere = array(
'username = ?' => 'admin'
);
$res = $db->update('phpbb3_users', $updateData, $updateWhere);
4

1 に答える 1

1

このコードは私が更新するために働いているので

$updateData = array(
'user_type' => 0
);
        $updateWhere = array(
'username' => 'admin'
);          

また

  $updateWhere = "username = 'admin'";  
            $db->update('phpbb3_users', $updateData, $updateWhere);

それがあなたの問題を確実に解決することを願っています

于 2013-07-30T11:22:53.707 に答える