search

Home  >  Q&A  >  body text

Why did the teacher’s submission fail?

老师在不

$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);

}


我来也我来也2089 days ago1435

reply all(1)I'll reply

  • Single

    Single2019-05-09 16:56:26

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

    reply
    0
  • Cancelreply