samedi 21 novembre 2015

how to make room system in php

I am making fantasy cricket website where i want to add features where users can select the rooms or slot of 2users 5users etc e.g there is 2 options

  • 2users
  • 5users

if user will select 2user then he will compete with one other user and if user ll select 5user then he will compete with 4 other user. and i want every user to see the players selection of other users in that room. i hve designed tan;e userscore

| userid | userscore | usersplayers   |
| -------|---------- |  ------------  |
| 10     |   400     |     array
| 19     |   500     |     array
| 5      |   300     |     array
| 9      |   150     |     array

i hve put user selection in an array and now afte update of userscore i am able to get usre selection and user scores, all is working fine but i want that when user 10 make entry in 2users then there should b count of 1/2 and if user 19 make entry in user2 then it should again become 0/2 and i want user 10 and 19 to see the selection of each other.. i easy words i can say that i want to make room system. i need help of you kindly tell me which function of procedure ll use for this purpose. and sorry guys for bad english.

Aucun commentaire:

Enregistrer un commentaire