Why can't the update be created?
王佳祥
王佳祥 2020-05-16 20:27:32
0
1
1164

$result = Staff::update([  

      'name'=>'Takematsu',    

    ],['id'=>1045]);    

  if ($result){         return $result->name.'Update successful';      

}else{       

 return $result->getError();      

}

王佳祥
王佳祥

reply all(1)
!

Can you post the complete code? Or you can refer to https://www.php.cn/php/php-update-method.html

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