Find fejl
Hvad er der galt her ?<?
require("mysql.php");
function shbots ($text, $dato, $tot) {
$b=nobots($dato);
$pct=$b/$tot*100;
echo $text.$b."(".$pct."%)";
}
function nobots ($dato) {
$result=mysql_query("select id from edgestat where lastlogon>'$dato'");
$num=mysql_num_rows($result);
return $num;
}
$today=date("Ymd");
$day=date("d");
$month=date("m");
$year=date("Y");
$m=$month-1;
if ($m<10) $m="0$m";
$y=$year-1;
if ($y<10) $y="0$y";
$lastmonth=$year.$m.$day;
$lastyear=$y.$month.$day;
$tot=nobots(1);
echo "Total bots : ".$tot;
shbots("Active last month: ",$lastmonth, $tot)
shbots("Active last year: ",$lastyear, $tot)
?>
Fejl i sidste linje : Parse error: parse error, unexpected T_STRING in /home/www/edge/human-stat.php on line 32
