irgend wie haut da ne variable nich hin

Hi, für meine Radioseite will ich ein Bingo-Spiel einrichten und arbeite dazu Datenbank gebunden...

hier mein Script:

PHP:
<?php
 
    
    srand(microtime()*1000000)
    
    $bingo1=rand(1,20);
    $bingo2=rand(1,20);
    $bingo3=rand(1,20);
    $bingo4=rand(1,20);
    $bingo5=rand(1,20);
    $bingo6=rand(21,40);
    $bingo7=rand(21,40);
    $bingo8=rand(21,40);
    $bingo9=rand(21,40);
    $bingo10=rand(21,40);
    $bingo11=rand(41,60);
    $bingo12=rand(41,60);
    $bingo13=rand(41,60);
    $bingo14=rand(41,60);
    $bingo15=rand(41,60);
    $bingo16=rand(61,80);
    $bingo17=rand(61,80);
    $bingo18=rand(61,80);
    $bingo19=rand(61,80);
    $bingo20=rand(61,80);
    $bingo21=rand(81,100);
    $bingo22=rand(81,100);
    $bingo23=rand(81,100);
    $bingo24=rand(81,100);
    $bingo25=rand(81,100);
    
$DB->query("INSERT INTO cor_bingo (s1,s2,s3,s4,s5,o1,o2,o3,o4,o5,u1,u2,u3,u4,u5,n1,n2,n3,n4,n5,d1,d2,d3,d4,d5) VALUES ('".$bingo1."','".$bingo2."','".$bingo3."','".$bingo4."','".$bingo5."','".$bingo6."','".$bingo7."','".$bingo8."','".$bingo9."','".$bingo10."','".$bingo11."','".$bingo12."','".$bingo13."','".$bingo14."','".$bingo15."','".$bingo16."','".$bingo17."','".$bingo18."','".$bingo19."','".$bingo20."','".$bingo21."','".$bingo22."','".$bingo23."','".$bingo24."','".$bingo25."')");
    
   eval ("\$site_body.= \"".getTemplate("bingo_dj")."\";");
 ?>

Als fehlermeldung bringt er mir:
Parse error: syntax error, unexpected T_VARIABLE in xxxxxxx on line 6

sinn des ganzen is, dass zufallszahlen generiert werden, die dann in die entsprechende tabellenspalte eingetragen werden...
aber irgend wie haut des beim parsen auf m server ned hin.. woran kann des liegen?


ich hoffe, ihr könnt mir helfen

gruß adi
 
in zeile 4 fehlt das ; am ende.

nachtrag: bau mal ein array, das ist schöner.
 
Zurück
Oben