Multilotto
connect(); include("inc/class.svenskaspel.php"); $keno = new kenoresultat(); $kenovinst = new kenovinst(); if ($_POST['gammal'] > 0 ) { $i = 0; $back = $sql->query("SELECT * FROM resultat_keno WHERE produktid='14' AND omgang='".$sql->mres($_POST['gammal'])."'"); if ($row = $sql->fetch($back)) { $keno->KenoUt($row); $keno->KenoUtPrint(); } $back_vinst = $sql->query("SELECT * FROM resultat_keno_vinst WHERE tipsid='$keno->id' ORDER BY tipsid, typ, spelform, vinstgrupp ASC"); while ($row_vinst = $sql->fetch($back_vinst)) { $kenovinst->Ut($row_vinst); } print(""); } else { //Skriv ut alla $i = 0; $back = $sql->query("SELECT * FROM resultat_keno WHERE produktid='14' ORDER BY omgang DESC LIMIT 1"); if ($row = $sql->fetch($back)) { $keno->KenoUt($row); $keno->KenoUtPrint(); } $back_vinst = $sql->query("SELECT * FROM resultat_keno_vinst WHERE tipsid='$keno->id' ORDER BY tipsid, typ, spelform, vinstgrupp ASC"); while ($row_vinst = $sql->fetch($back_vinst)) { $kenovinst->Ut($row_vinst); } print(""); } echo "

"; ?>
Multilotto