Hilfe....ich habe folgenden Code
function counter() {
$abfrage = "SELECT counter FROM counter_csm";
$ergebnis = mysql_query($abfrage);
if( mysql_error() ) {
msg("Datenbank Fehler: ". mysql_error());
exit;
}
$row = mysql_fetch_object($ergebnis);
$counterstand = $row->counter;
echo $counterstand;
$ip = gethostbyaddr($REMOTE_ADDR);
session_start();
$session_ip = session_is_registered($ip);
if($ip != $session_ip)
{
$counterstand++;
$update = "UPDATE counter_csm SET counter = '$counterstand'";
mysql_query($update);
}
session_register($ip);
}
aber wenn ich dan die funktion counter() einbinde, kommt immer folgende Fehlermeldung
Warning: Address is not in a.b.c.d form in /big/www/f0rg0tt3n.de/htdocs/csm/functions2.php on line 16
Warning: Cannot send session cookie - headers already sent by (output started at /big/www/f0rg0tt3n.de/htdocs/csm/functions2.php:123) in /big/www/f0rg0tt3n.de/htdocs/csm/functions2.php on line 17
Warning: Cannot send session cache limiter - headers already sent (output started at /big/www/f0rg0tt3n.de/htdocs/csm/functions2.php:123) in /big/www/f0rg0tt3n.de/htdocs/csm/functions2.php on line 17
und das auf nem Webserver (
www.f0rg0tt3n.de/csm)
Wie kann ich diesen Fehler beheben? Bzw. was will mit dieser Fehler sagen??
Greez Dark