Im working on a lottery website and have a 'winning numbers' database for a 'game' that is setup like this:
field 1: "digit1"
field 2: "digit2"
field 3: "digit3"
I need (DESPARATELY) to develop a search feature that works like this one:
... so that the user enters three digits and all the varying combinations of this 'number' are returned in a simple HTML table.
I know theres a way but cant figure out how to come up with a solution that finds ONLY the combinations for those 3 digits.
How can I achieve this given the way the numbers are stored in my database?
** In the future, I'll need to port this same thing over to another game that has 4 digits then another that has 5 digits if that helps put it all in perspective.
aamaker@sc.rr.com
-- Thanks for any help you can provide!
field 1: "digit1"
field 2: "digit2"
field 3: "digit3"
I need (DESPARATELY) to develop a search feature that works like this one:
... so that the user enters three digits and all the varying combinations of this 'number' are returned in a simple HTML table.
I know theres a way but cant figure out how to come up with a solution that finds ONLY the combinations for those 3 digits.
How can I achieve this given the way the numbers are stored in my database?
** In the future, I'll need to port this same thing over to another game that has 4 digits then another that has 5 digits if that helps put it all in perspective.
aamaker@sc.rr.com
-- Thanks for any help you can provide!