Why did the teacher's submission fail?
我来也
我来也 2019-05-08 19:13:50
0
1
1410

老师在不

$title = trim(input('post.title'));

$site = $this->db->table('sites')->where(array('names'=>'site'))->item();

if(!$site){

$this->db->table('sites')->insert(array('names'=>'site','values'=>json_encode($title)));

}else{

$value['values'] = json_encode($title);

$this->db->table('sites')->where(array('names'=>'site'))->update($value);

}


我来也
我来也

reply all(1)
Single

You have to see what error is reported and treat it accordingly***

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template