登陆

老师为啥提交不成功

老师在不

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

}


# PHP
我来也我来也901 天前639 次浏览

全部回复(1)我要回复

  • Single

    Single2019-05-09 16:56:26

    你得看看报什么错 对症下***

    回复
    0
  • 取消回复发送