Jump to content

[SOLVED] Help with coding overview!


Snooble

Recommended Posts

Hey everyone, thanks in advance!

 

I'm creating bingo cards using PHP and MySQL. I wondered what the best way of doing so is.. So far my idea is:

 

Use php to shuffle an array of values, choose first 10, (10 items per bingo card), and save each choice in a separate column under an id.

 

I need each card to be UNIQUE, and I need to have a record of the items on the card by checking the id.

 

Any tips on making sure each card is unique would be GREATLY appreciated, as I'm a bit stuck!

 

Thank you!

 

Snooble

Link to comment
Share on other sites

so if i serialize the array, i can compare one WHOLE bingo card to another? Would i need to sort the results first to make the serialized arrays the same?

 

Thanks

 

Snooble

 

 

Well, bingo cards are usually sorted so I guess it should be sorted in the array. Comparing one whole bingo card to another will work but only return true or false if they are the same, they won't return the differences between the two.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.