wiedermal ein Problem mit IE

  • wieso zeigt IE das diese seite nicht an es heißt immer er findet die seite nicht...
    Hilfe bitte


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Unbenanntes Dokument</title>
    </head>
    <html>
    <?php
    $verbindung = mysql_connect ("xxx",
    "xxx", "xxx")
    or die ("Die Verbindung zur Datenbank konnte nivht aufgebaut werden bitte kontaktieren sie den Admin");


    mysql_select_db("snapshotx")
    or die ("Es ist ein Fehler mit der Datenbank aufgedrehten bitte kontaktieren sie den Admin");
    ?>




    <body>


    <?php


    $ip = $_SERVER['REMOTE_ADDR'];
    $oklog = "xxx" ;



    $result = mysql_query("SELECT id FROM sperre WHERE 'tot sperre' LIKE '$ip'" );
    $sperre = mysql_num_rows ($result) ;


    if ($sperre == 0)
    {
    $ok1 = "1" ;
    }
    else
    {
    header('Location: http://snaps.php');
    exit;
    } //total Sperre




    $result = mysql_query("SELECT id FROM sperre WHERE 'totale zeitsperre' LIKE '$ip'" );
    $sperre = mysql_num_rows ($result) ;


    if ($sperre == 0)
    {
    $ok2 = "1" ;
    }
    else
    {
    header('Location: http://snap.php');
    exit;
    } //tot Zeitsperre




    $result = mysql_query("SELECT id FROM sperre WHERE 'verwarnung1' LIKE '$ip'" );
    $sperre = mysql_num_rows ($result) ;


    if ($sperre == 0)
    {
    $ok3 = "1" ;
    }
    else
    {
    header('Location: http://snap.php?1=3');
    exit;
    } //verwarung 1




    $result = mysql_query("SELECT id FROM sperre WHERE 'verwarnung2' LIKE '$ip'" );
    $sperre = mysql_num_rows ($result) ;


    if ($sperre == 0)
    {
    $ok4 = "1" ;
    }
    else
    {
    header('Location: http://snap.php?1=4');
    exit;
    } //verwarung 2



    if($ok1 == "1" and $ok2 == "1" and $ok3 == "1" and $ok4 == "1" )
    {
    setcookie($xxx,$oklog,0);
    header("Location: http://snap.php");
    }


    ?>




    </body>


    <?
    mysql_close($verbindung);
    ?>



    </html>




  • Hi...
    also wenn ich mich nicht richtig verschaut habe, dann hast du gleich am Anfang 2x <html> dort stehen. Hast du die Datei auf dem Webserver als HTML oder PHP abgelegt ? PHP oder ?


    Ich würde die Verbindung zu DB mit include machen und gleich direkt am Anfang der Datei.


    Hau einmal das HTML in der 7ten Zeile weg und schau mal obs geht.