You must use the "set" method to update an entry.
次の方法を使用するとエラーが発生する理由を理解しようとしています。これを行うために、Jamie Rumbelow の MY_Model を使用しています。
$this->failed_login->insert_login_attempt($this->input->ip_address(),
$post_username,
gmdate('Y-m-d H:i:s', time()));
public function insert_login_attempt($user_ip_address, $username,
$datetime_of_attempt)
{
$failed_attempt = array(
'user_ip_address' => $user_ip_address,
'username' => $username,
'datetime');
$this->db->insert($failed_attempt);
}