for($ji=0;$ji<10;$ji++){
$datas = array(
'newstitle' => 'as标题'.$ji,
'newscontent' => '内容',
'newstime' => date('Y-m-d H:i:m'),
'news_class_id' => '5'
);
$this->db->insert('news',$datas);
}
A Database Error Occurred
Error Number: 1366
Incorrect string value: '\xB1\xEA\xCC\xE20' for column 'NewsTitle' at row 1
如果把for循环去除就能正确执行。 |