, :
:
:
, , id , , ( ) , Id, , else else return error.
id:
, , , , , , .
both actions are the same, but I recommend storing the identifier in the session when the client is connected, so you directly make an update request without searching for the latter,
So, Sotre Id in the session, when the client is connected, then performs the update using the var session identifier, and this without specifying the identifier on the client side.
source
share