Check af bingo plader
Hej alle sammenJeg sidder og er ved at lave et bingo system, men er stoedt in i problem som jeg ikke rigtig kan finde loesningen paa.
Jeg en database med udtrukne numre
og en bingo plader ogsaa i database
hvordan komparer jeg nemmest numre for at chacke om der er en vinder paa kortne
i trukne numre i databasen start fra n01 - n75
paa pladerne er der 25 numre start fra n1-n25
Det er lidt specielt bingo hvor man forskellige vinder muligheder, der nogle exempler her:
$fullcard=array("$nu1","$nu2","$nu3","$nu4","$nu5","$nu6","$nu7","$nu8","$nu9","$nu10","$nu11","$nu12","$nu13","$nu14","$nu15","$nu16","$nu17","$nu18","$nu19","$nu20","$nu21","$nu22","$nu23","$nu24","$nu25");
$jet=array("$nu3","$nu7","$nu10","$nu11","$nu12","$nu14","$nu15","$nu17","$nu20","$nu23");
$happyface=array("$nu4","$nu6","$nu10","$nu15","$nu16","$nu20","$nu24");
$hangman=array("$nu1","$nu2","$nu3","$nu4","$nu5","$nu6","$nu11","$nu15","$nu16","$nu17","$nu18","$nu19","$nu23","$nu25");
$gobingo=array("$nu16","$nu17","$nu18","$nu19","snu20","$nu21","$nu22","$nu23","$nu24","$nu25");
$fourcorners=array("$nu1","$nu5","$nu21","$nu25");
$explosion=array("$nu1","$nu5","$nu8","$nu12","$nu14","$n18","$nu21","$nu25");
$eightpack=array("$nu1","$nu2","$nu3","$nu4","$nu6","$nu7","$nu8","$nu9");
$doublebingo=array("$nu3","$nu6","$nu7","$nu8","$nu9","$nu10","$nu18","$nu23");
$dollarsign=array("$nu1","$nu2","$nu3","$nu5","$nu6","$nu8","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu18","$nu20","$nu21","$nu23","$nu24","$nu25");
$diamond=array("$nu3","$nu7","$nu8","$nu9","$nu11","$nu12","$nu14","$nu15","$nu17","$nu18","$nu19","$nu23");
$chessboard=array("$nu1","$nu3","$nu5","$nu7","$nu9","$nu11","$nu15","$nu17","$nu19","$nu21","$nu23","$nu25");
$checkmark=array("$nu3","$nu4","$nu5","$nu9","$nu17","$nu21");
$cornered=array("$nu2","$nu3","$nu4","$nu5","$nu8","$nu9","$nu10","$nu14","$nu15","$nu20");
$champagneglassfull=array("$nu1","$nu6","$nu7","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu17","$nu20","$nu21");
$champagneglassemty=array("$nu1","$nu7","$nu10","$nu14","$nu15","$nu17","$nu20","$nu21");
$champagnebottle=array("$nu8","$nu9","$nu10","$nu11","$nu12","$nu14","$nu15","$nu18","$nu19","$nu20");
$cents=array("$nu7","$nu8","$nu9","$nu11","$nu12","$nu14","$nu15","$nu17","$nu19");
$bowtie=array("$nu4","$nu5","$nu9","$nu10","$nu16","$nu17","$nu21","$nu22");
$anchor=array("$nu1","$nu4","$nu6","$nu10","$nu11","$nu12","$nu14","$nu15","$nu16","$nu20","$nu21","$nu24");
$airplane=array("$nu2","$nu3","$nu4","$nu8","$nu16","$nu17","$nu18","$nu19","$nu20","$nu23");
Haaber nogen der kan hjaelpe mig
Paa forhaand tak