T_CONSTANT_ENCAPSED_STRING

  • Ich hab mit folgenden Code versucht,
    die Daten einer Registration in meine Datenbank zu speichern..
    Die Verbindung ist auch aufgebaut:

    Code
    $eintrag = "INSERT INTO hm_player
    (mannschaft, username, password, mail, icq, msn, page, hobby, trikot, logo, money, points, keepername, playerone, playertwo, playerthree, playerfour, playerfive, playersix, playersev, location)
    VALUES
    ('".mysql_real_escape_string($mannschaft)."', '".mysql_real_escape_string($username1)."', '".mysql_real_escape_string($password')."', '".mysql_real_escape_string($mail)."', '".mysql_real_escape_string($icq)."', '".mysql_real_escape_string($msn)."', '".mysql_real_escape_string($page)."', '".mysql_real_escape_string($hobby)."', '".mysql_real_escape_string($trikot)."', '".mysql_real_escape_string($logo)."', '500', '50', '".mysql_real_escape_string($keeper)."', '".mysql_real_escape_string($player1)."', '".mysql_real_escape_string($player2)."', '".mysql_real_escape_string($player3)."', '".mysql_real_escape_string($player4)."', '".mysql_real_escape_string($player5)."', '".mysql_real_escape_string($player6)."', '".mysql_real_escape_string($player7)."', '".mysql_real_escape_string($location)."')";
    
    
    $eintragen = mysql_query($eintrag);

    Aber dann zeigt er folgende Fehlermeldung an:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in ---/regist2.php on line 66

    Bin noch eher nen Anfänger und bitte um hilfe :?

  • Code
    $eintrag = "INSERT INTO hm_player
    (mannschaft, username, password, mail, icq, msn, page, hobby, trikot, logo, money, points, keepername, playerone, playertwo, playerthree, playerfour, playerfive, playersix, playersev, location)
    VALUES
    ('".mysql_real_escape_string($mannschaft)."', '".mysql_real_escape_string($username1)."', '".mysql_real_escape_string($password').", '".mysql_real_escape_string($mail)."', '".mysql_real_escape_string($icq)."', '".mysql_real_escape_string($msn)."', '".mysql_real_escape_string($page)."', '".mysql_real_escape_string($hobby)."', '".mysql_real_escape_string($trikot)."', '".mysql_real_escape_string($logo)."', '500', '50', '".mysql_real_escape_string($keeper)."', '".mysql_real_escape_string($player1)."', '".mysql_real_escape_string($player2)."', '".mysql_real_escape_string($player3)."', '".mysql_real_escape_string($player4)."', '".mysql_real_escape_string($player5)."', '".mysql_real_escape_string($player6)."', '".mysql_real_escape_string($player7)."', '".mysql_real_escape_string($location)."')";
    
    
    $eintragen = mysql_query($eintrag);

    Bitteschön :wink:

  • Leute, schreibt doch mal lesbaren quellcode. Zeilen mit über 800 zeichen sind eine katastrophe