The modification is successful. The normal number of affected rows printed in Sysdb.php is 1. The corresponding $res in admin.php = $this->db->table('admins')->where( ['id'=>$id])->update($data);var_dump($res);
The return is always NULL. Does anyone know what's going on? Please advise, thank you!
Support the same request!
$res = $this->db->table('admins')->where('id',$id)->update($data); Try this
$res = $this->db->table('admins')->where(['id',$id)->update($data); Try this