Quote:
Originally posted by Boogle
I have a problem with the db_mysql.php file. Locally everything works, but if I upload to me webserver I get an error, like so:
Any advice?
|
Hi, I've got the same error, cause I was mixing up
echo "Time before: $beforetime\n";
and
echo "Time after: $aftertime\n";
when lookig for the code to change ...
Just remove
PHP Code:
}
$this->query_id = mysql_query($query_string,$this->link_id);
if (!$this->query_id) {
$this->halt("Invalid SQL: ".$query_string);
}
$query_count++;
if ($showqueries) {
$pageendtime=microtime();
$starttime=explode(" ",$pagestarttime);
$endtime=explode(" ",$pageendtime);
$aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
$querytime+=$aftertime-$beforetime;
echo "Time after: $aftertime\n";
in your broken db_mysql.php, cause you've left it there.
HTH
btw: I've modified the Hack, so that the adminstats are based on templates, too.
Check the Attachment