TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Help General Support Pick a name

Pick a name

2007-07-03 19:57:00
Group: Member
Posts: 214
Topics participated: 112
Topics started: 63
First post: 2006-10-22 20:18:00
Last post: 2008-10-15 17:19:00
Can anyone make this:

I got a contast on my tracker and some off my users contesting. Now i want to pick a winner without any cheat.

I guess a script for users to type the nickname and when i press GO the winner will be found.

Any idears to how i can choose a winner without cheating ?

I allso think i can do it live on WebCam to let all users watch the contest.
 
2007-07-03 20:21:00
Group: Member
Posts: 919
Topics participated: 491
Topics started: 13
First post: 2006-02-26 07:17:00
Last post: 2008-12-03 07:16:00
Something like this:
SELECT * FROM users WHERE player = 'yes' ORDER BY RAND() LIMIT 1


change player = yes whatever yours is.
I heard ORDER BY RAND sometime not work correctly,but i try
 
2007-07-03 20:43:00
Group: Member
Posts: 214
Topics participated: 112
Topics started: 63
First post: 2006-10-22 20:18:00
Last post: 2008-10-15 17:19:00
I need a complete script please
 
2007-07-03 21:01:00
Group: Member
Posts: 919
Topics participated: 491
Topics started: 13
First post: 2006-02-26 07:17:00
Last post: 2008-12-03 07:16:00
Change player = 'yes' to yours.

 
\n"); <------------- Does the winner get 25 GB (maybe i dont explaing my wish good)
2007-07-03 21:31:00
Group: Member
Posts: 214
Topics participated: 112
Topics started: 63
First post: 2006-10-22 20:18:00
Last post: 2008-10-15 17:19:00
Thanks Traffic but sorry to say - i dont understand - Your code is that a php filer stand alone or what to do with it - and What is this: 25 GB or ???
 
2007-07-03 21:35:00
Group: Member
Posts: 919
Topics participated: 491
Topics started: 13
First post: 2006-02-26 07:17:00
Last post: 2008-12-03 07:16:00
sorry,i forgot to say.
make a .php file from it & name it to what you want.
And 25 GB or ??? is the Place where you can write what the user won.
 
2007-07-03 22:05:00
Group: Member
Posts: 214
Topics participated: 112
Topics started: 63
First post: 2006-10-22 20:18:00
Last post: 2008-10-15 17:19:00
sorry,i forgot to say.
make a .php file from it & name it to what you want.
And 25 GB or ??? is the Place where you can write what the user won.

They won real money :o)
 

Similar threads

Topic Posts Last post
Last Question for now: How do I pick what class my users start out at? 8 2006-11-21 07:56:00