search

Home  >  Q&A  >  body text

请教$result = TeacherModel::update($data,$condition);

Hello teacher! In $result = TeacherModel::update($data,$condition);, $data updates all the information passed by the form by default, but if a certain field in $data wants to update the specified value, but the others are submitted as is Should I write it like this? $result = TeacherModel::update($data('user_name - > "Little Donkey"'),$condition);

弹下弹下弹下弹下2268 days ago1266

reply all(1)I'll reply

  • 弹下弹下

    弹下弹下2018-10-13 21:07:29

    Thank you, teacher. It was mainly because my brain was short-circuited. I have found a way. Thank you!

    reply
    0
  • Cancelreply