|
Can you re-explain this?.. I don't really understand what you're saying..
EDIT: K, I thought it through. So basically you want two games to be selected and then 1, 2, 3, and 4 to appear once through all 4 numbers of the two games?
If so you can simply loop through your MySQL result and select a game with 1-2 then 3-4. Another less buggy way to do it would be to create an array with all numbers then when you use one game you set the two numbers in that game to 1 or true. Then next time it loops it checks if that game has numbers that are set false in that array. If it does then you use that game.
The only way to really do this straight in the query is to do something like this -
SELECT * FROM games WHERE score='2,1' OR score='4,3'
But that's error prone and pointless when you could use the first two options.
__________________
PHP Code:
$talkupation++;
Please login or register to view this content. Registration is FREE - Free IPB forum hosting (releasing today!!!), no ads, free modifications
Last edited by Mattmaul1992; 02-15-2008 at 05:50 PM..
|