$data = array(
'date' => $time,
'boxoffice'=> $boxoffice,
'upcoming'=> $upcoming,
'intheaters'=> $intheaters,
'opening' => $opening,
'user' => $users,
'movie' => $movies,
'star' => $actors,
'diractor' => $directores,
'writer' => $writeres,
'cast' => $casts,
'comment'=> $comment,
'image' => $images,
'genre' => $genre,
'country'=> $countrycode
);
try {
$this->db->insert('muvidb_updatehistory',$data);
}
catch (Exception $e){}
У меня есть эти коды выше в моем проекте, поначалу кажется, что он работает нормально, но когда я заглянул в свою таблицу, значение было вставлено три раза.Я новичок в Codeigniter, и я застрял с этой проблемой.
У кого-нибудь есть идея, почему это происходит?