hilfe zum includen...

das ist der counter. diese und die anderen dazugehörigen datein befinden sich auf dem web im ordner "counter"
Code:
<?php
/*****************************************
* Copyright by Ruben (tash) Schalko 2004 *
*****************************************/
@error_reporting();
include("config.php");
$config = mysql_connect($mysql_server, $mysql_user, $mysql_password) or die(mysql_error());
mysql_select_db($mysql_database, $config) or die(mysql_error());
include("statistic_cfg.php");
$sql     = "SELECT * FROM statistic";
$result  = mysql_query($sql) OR die(mysql_error());
$row     = mysql_fetch_assoc($result);
$sql2    = "SELECT COUNT(ip) as anzahl FROM counter";
$result2 = mysql_query($sql2) OR die(mysql_error());
$anzahl  = mysql_result($result2, 0, 'anzahl');
$font    = "<font size='$font_size' face='$font_face' color='$font_color'>";
$link    = "<a href='http://www.quakersnet.com' target='_new'><font size='$font_size_adv' face='$font_face_adv' color='$font_color_adv' align='center'>QuakersNet</a>";
echo "
      <table align='left' cellpadding='0' cellspacing='0'>
      <tr>
      <td width='90'>$font &nbsp;Besucher Online</td>
      <td width='20'>$font :&nbsp;$anzahl</td>
      </tr>
      <tr>
      <td width='90'>$font &nbsp;Besucher Max</td>
      <td width='20'>$font :&nbsp;".$row['max']."</td>
      </tr>
      <tr>
      <td width='90'>$font &nbsp;Besucher Heute</td>
      <td width='20'>$font :&nbsp;".$row['tday']."</td>
      </tr>
      <tr>
      <td width='90'>$font &nbsp;Besucher Gesamt</td>
      <td width='20'>$font :&nbsp;".$row['hits']."</td>
      </tr>";
      if($adv == "1")
        {
         echo "
         <tr>
          <td colspan='2' align='center'>$font by $l</td>
         </tr>";
        }
      echo "
      </table>";

?>

wenn ich jetzt ganz normal wie oben schon geschrieben include bringt er ne fehlermeldung. wenn ich jedoch mit http://www.blbalalba.de/counter/statistic.php , include, dann geht es, jedoch zählt er nur die hits und sonst nichts....
 
Zurück