Welcome Guest, Not a member yet? Register   Sign In
update database with different id
#3

(07-24-2023, 02:56 AM)ozornick Wrote: It is ok. The primary key is needed for the update. In this case, you need to make an additional request to get "select ... id_login where id_user = ?" or pass id_login directly to the method
third option is to use the builder to create a query

PHP Code:
$loginModel->set('deleted_at'null)->where('id_user'$id_user)->update() 

this is working, thanks for the help.  Big Grin
Reply


Messages In This Thread
RE: update database with different id - by muh-ramadhan - 07-24-2023, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB