Zaloguj | Zarejestruj | FAQ
Anonymous

update record

+ Odpowiedz

Posty: 4 Strona 1 z 1


update record

przez muratsal » Wt lis 20, 2012 9:41 am

i wanto update record but firstly i should control what the state . So first select and update but maybe other user change the value of record.
How to guarentee that my update is valid .
example if colum value is null set your id but when you send select query other user can set value and ı set over it .
Avatar użytkownika

muratsal

  • Posty: 47
  • Dołączył(a): Śr paź 17, 2012 12:51 pm
--
my map applications http://haritaaraci.com/

Re: update record

przez XainPro » Śr lis 21, 2012 4:35 am

please explain further with your query and code i do not understand what you are talking about.
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: update record

przez muratsal » Śr lis 21, 2012 9:34 am

code about joinin online game
1 game creator and 1 rival
when user create game
gameid,gamename,...,rivalId,state,.. there is table like this.

i control if rivalId is null createor vait for rival if anyuserId game start
but problem is when a user wanto join a game, user control if rivalId null if it is null user set itself id .
problem when select this record maybe any ather uset set him/her userid,

understand ? sorry for bad english :)
Avatar użytkownika

muratsal

  • Posty: 47
  • Dołączył(a): Śr paź 17, 2012 12:51 pm
--
my map applications http://haritaaraci.com/

Re: update record

przez XainPro » So lis 24, 2012 7:22 am

sorry did not understand :(
show your code what you really want ?
is your problem related with code or database ?
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm


+ Odpowiedz

Strona 1 z 1