1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. Programmierung - Entwickler Forum
  3. PHP Forum - Apache - CGI - Perl - JavaScript und Co.

was ist da flasch?

  • Sebastian S.
  • 25. Januar 2007 um 18:07
  • Sebastian S.
    Teeny
    Beiträge
    17
    • 25. Januar 2007 um 18:07
    • #1

    Hallo ich hab mall ne frage was ist da flsch?

    PHP
    <?php
    include("http://seite/incql.inc")
    $motto = trim($_POST['motto']);
    $quelle = trim($_POST['quelle']);
    $query = "INSERT INTO motto "
            ."(motto, quelle)"
            ."VALUES "
            ."('$motto','$quelle')";
    $dummy = mysql_query($query);
    mysql_close($dz);
    ?>
    <html>
    <head></head>
    <body>
    
    
    
    
    Das folgende Motto wurde eingetragen:</p>
    <blockquote style="width:500px; padding : 10px; border : 2px
    solid black">
    <?PHP echo $motto."
    [i]".$quelle."[/i]"; ?>
    </blockquote>
    
    
    
    
    [url='eingabe.html']Weitere Eingabe[/url]</p>
    </body>
    </html>
    Alles anzeigen


    es soll ne Motto-eingabe maschine wärden die das auch gleich auswertet.

    achja es kommt dan auch dieser fehler:

    Parse error: parse error in C:\Inetpub\vhosts\seite\httpdocs\auswerung1.php on line 3

  • Ronald
    Forum Guru
    Beiträge
    5.439
    • 25. Januar 2007 um 18:52
    • #2

    Moin!

    Hinter

    Code
    include("http://seite/incql.inc")

    fehlt das Semikolon.

    G.a.d.M.

    Ronald

    annunci per coppie

  • Sebastian S.
    Teeny
    Beiträge
    17
    • 25. Januar 2007 um 19:38
    • #3

    ok das klapt aber nun kommt das...

    Code
    Warning: main(): php_network_getaddresses: gethostbyname failed in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 2
    
    
    Warning: main(http://sebi.maxinet/incql.inc): failed to open stream: No such file or directory in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 2
    
    
    Warning: main(): Failed opening 'http://sebi.maxinet/incql.inc' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 2
    
    
    Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 9
    
    
    Warning: mysql_query(): A link to the server could not be established in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 9
    
    
    Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 10
    Alles anzeigen
  • BendOr
    Kaiser(in)
    Beiträge
    2.496
    • 25. Januar 2007 um 19:40
    • #4

    die seite veim include gibts nich und somit kriegste auch keine db-connection

    Sei immer du selbst. Außer du kannst Batman sein. Sei immer Batman!

  • Sebastian S.
    Teeny
    Beiträge
    17
    • 25. Januar 2007 um 19:49
    • #5

    aha und das bedeutet?

  • BendOr
    Kaiser(in)
    Beiträge
    2.496
    • 25. Januar 2007 um 20:01
    • #6

    das bedeutet ganz einfach, dass es die seite nicht gibt ?!?
    vll hast dich vertippt oder sowas

    Sei immer du selbst. Außer du kannst Batman sein. Sei immer Batman!

  • Sebastian S.
    Teeny
    Beiträge
    17
    • 25. Januar 2007 um 20:06
    • #7

    aaaa ok danke *ups vergesen das .de hinzuzufügen* aber sorry das ich wieder nerve was ist das?

    Code
    Warning: main(http://sebi.maxinet.de/incql.inc): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 2
    
    
    Warning: main(): Failed opening 'http://sebi.maxinet.de/incql.inc' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 2
    
    
    Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 9
    
    
    Warning: mysql_query(): A link to the server could not be established in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 9
    
    
    Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\vhosts\sebi.maxinet.de\httpdocs\auswerung1.php on line 10
    Alles anzeigen


    mein kumpel sagt dsa was mit der datenbank ist aber bei meinen php bucht steht da nix -.-

  • BendOr
    Kaiser(in)
    Beiträge
    2.496
    • 25. Januar 2007 um 20:13
    • #8

    Not Found
    The requested document was not found on this server.

    das ding gibt halt nicht... :ugly:

    Sei immer du selbst. Außer du kannst Batman sein. Sei immer Batman!

  • Sebastian S.
    Teeny
    Beiträge
    17
    • 25. Januar 2007 um 20:57
    • #9

    Die muss da sein
    guck
    http://sebi.maxinet.de/auswerung1.php
    wen du den fehler sehen willst
    gieb erst das was ein und dan schau es an
    http://sebi.maxinet.de/eingabe.html

  • Ronald
    Forum Guru
    Beiträge
    5.439
    • 25. Januar 2007 um 23:49
    • #10

    Ruf doch die Datei einfach direkt auf, dann siehst du, daß sie nicht auf dem Server ist: http://sebi.maxinet.de/incql.inc

    G.a.d.M.

    Ronald

    annunci per coppie

Tags

  • html
  • link
  • server
  • http
  • style
  • body
  • direkt
  • post
  • code
  • php
  • fehler
  • datei
  • error
  • border
  • mysql
  • eingabe
  • include
  • stream
  • padding
  • insert
  • insert into
  • semikolon
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern