PHP-Code:
function advers($on, $format)
{
if ($on == "ok")
{
$query = mysql_query("SELECT * FROM advers WHERE online = '1' AND format = '$format' ORDER BY rand() LIMIT 1");
$result = mysql_fetch_array($query);
$advers = $result["adcon"];
$adid = $result["adid"];
$adviews = $result["adviews"];
++$adviews;
if ($result["vcrand"] == 1)
{
$vcrand = rand(1,99999);
eval ("\$adervs = \"$advers\";"); // Zeile 34
}
mysql_query("UPDATE advers SET adviews='$adviews' WHERE adid='$adid' LIMIT 1 ");
return $advers;
}
}
Parse error: parse error in /xxx/xxx/functions.php(34) : eval()'d code on line 2
Kommentar