=$debuta) { $bd->execRequete("UPDATE fanlist SET wina='$dat' WHERE id='{$_GET['wina']}'"); $message='Thank you for playing, We\'ll keep you informed!'; $formA='n'; } else { $message="GAME OVER"; $formA='n'; } } else { if ($dat<=$fina AND $dat>=$debuta) $formA='y'; else $formA='n'; } if(isset($_GET['winb'])) { if ($dat<=$finb AND $dat>=$debutb) { $bd->execRequete("UPDATE fanlist SET winb='$dat' WHERE id='{$_GET['winb']}'"); $message='Thank you for playing, We\'ll keep you informed!'; $formB='n'; } else { $message="GAME OVER"; $formB='n'; } } else { if ($dat<=$finb AND $dat>=$debutb) $formB='y'; else $formB='n'; } if(isset($_GET['winc'])) { if ($dat<=$finc AND $dat>=$debutc) { $bd->execRequete("UPDATE fanlist SET winc='$dat' WHERE id='{$_GET['winc']}'"); $message='Thank you for playing, We\'ll keep you informed!'; $formC='n'; } else { $message="GAME OVER"; $formC='n'; } } else { if ($dat<=$finc AND $dat>=$debutc) $formC='y'; else $formC='n'; } if ($message!='') echo ""; ?>
execRequete("SELECT wina, winb, winc FROM fanlist WHERE id='$user'"); $verif=$bd->ligneSuivante($verif); if ($formA=='y' AND $verif['wina']<=$debuta) { echo "
"; echo "

-----------------------------------------------------------------------"; echo "

>>> NEW <<< Play for ".$txta." ".$txta2; echo "

>>> You can play till ".$fina.". Mail sent to winners the day after.

"; echo "

"; echo "

"; echo "
"; } elseif ($verif['wina']>=$debuta AND $dela>$dat) { echo "

-----------------------------------------------------------------------"; echo "

On ".$verif['wina']." you played for ".$txta." ".$txta2; } elseif ($dela<$dat) { echo "

-----------------------------------------------------------------------"; echo "

This game is over, the contest winners have been informed for:"; echo "

".$txta; } if ($formB=='y' AND $verif['winb']<=$debutb) { echo "

"; echo "

-----------------------------------------------------------------------"; echo "

>>> NEW <<< Play for ".$txtb." ".$txtb2; echo "

>>> You can play till ".$finb.". Mail sent to winners the day after.

"; echo "

"; echo "

"; echo "
"; } elseif ($verif['winb']>=$debutb AND $delb>$dat) { echo "

-----------------------------------------------------------------------"; echo "

On ".$verif['winb']." you played for ".$txtb." ".$txtb2; } elseif ($delb>$dat) { echo "

-----------------------------------------------------------------------"; echo "

This game is over, the contest winners have been informed for:"; echo "

".$txtb; } if ($formC=='y' AND $verif['winc']<=$debutb) { echo "

"; echo "

-----------------------------------------------------------------------"; echo "

>>> NEW <<< Play for ".$txtc." ".$txtc2; echo "

>>> You can play till ".$finc.". Mail sent to winners the day after.

"; echo "

"; echo "

"; echo "
"; } elseif ($verif['winc']>=$debutc AND $delc>$dat) { echo "

-----------------------------------------------------------------------"; echo "

On ".$verif['winc']." you played for ".$txtc." ".$txtc2; } elseif ($delc>$dat) { echo "

-----------------------------------------------------------------------"; echo "

This game is over, the contest winners have been informed for:"; echo "

".$txtc; } } ?>

What can you win now?

"; if ($dat<=$fina AND $dat>=$debuta) echo "

".$txta; elseif ($dat<=$finb AND $dat>=$debutb) echo "

".$txtb; elseif ($dat<=$finc AND $dat>=$debutc) echo "

".$txtc; else echo "Well ... Nothing for now"; ?>