Search found 4 matches
- Thu Jul 22, 2004 10:40 pm
- Forum: PHP - Code
- Topic: Card Game
- Replies: 2
- Views: 246
Hmm
It knows the card is already used...it just doesn't care. What my code currently does is: 1. randomly pick a card (unless max # of cards in deck has been reached) 2. check to see if it's being used (then use it anyway) 3. mark it as used (again) 4. display it What I want it to do is: 1. randomly pic...
- Thu Jul 22, 2004 10:06 pm
- Forum: PHP - Code
- Topic: Card Game
- Replies: 2
- Views: 246
Card Game
feyd | Please use tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] I am writing a card game. I can generate a random card, but I can't make it ignore duplicates. I am stumped. Any hints? Here is my code: <? $host = "...
- Fri Dec 05, 2003 8:29 am
- Forum: PHP - Code
- Topic: Post a loop generated variable
- Replies: 4
- Views: 501
Precisely
So, how do I give each one a unique name? I do NOT want to name each one by hand. Any suggestions?
- Fri Dec 05, 2003 5:42 am
- Forum: PHP - Code
- Topic: Post a loop generated variable
- Replies: 4
- Views: 501
Post a loop generated variable
I have a php file that generates 18*6 (108) text boxes. On submit, it goes to another page that evaluates what was put in the text box as matching items in a db. The problem is that the second page only gets the last item in the list. I need ALL the items to be passed, not just the last one. In adva...