I remove the funtion, and it works fine.
here is the code ( Note: this was created by lan3y on evilwalrus.com )
Code: Select all
function lottery($maxn = "49",$maxb="6") {
srand((double) microtime() * 1000000);
while (1>0) {
$lotteryї] = rand(1,$maxn);
$lottery = array_unique($lottery);
if (sizeof($lottery) == $maxb) break;
}
sort($lottery);
return implode(", ",$lottery);
}
$lotterynums = lottery();
?>
<html>
<head>
<title>Lottery Numbers</title>
</head>
<body>
<h1>And your lottery numbers for this week are...</h1><br>
<h3><?=$lotterynums?></h3><br>
</body>
</html>