登录 | 注册 | FAQ
Anonymous

update record

+ 发表回复

4 篇帖子 分页: 1 / 1


update record

muratsal » 周二 11月 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 .
头像

muratsal

  • 帖子: 47
  • 注册: 周三 10月 17, 2012 12:51 pm
--
my map applications http://haritaaraci.com/

Re: update record

XainPro » 周三 11月 21, 2012 4:35 am

please explain further with your query and code i do not understand what you are talking about.
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: update record

muratsal » 周三 11月 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 :)
头像

muratsal

  • 帖子: 47
  • 注册: 周三 10月 17, 2012 12:51 pm
--
my map applications http://haritaaraci.com/

Re: update record

XainPro » 周六 11月 24, 2012 7:22 am

sorry did not understand :(
show your code what you really want ?
is your problem related with code or database ?
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1