[Problem]Register page Error hilfe!

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • [Problem]Register page Error hilfe!

    Hallo an alle,

    Ich habe ein Problem ich arbeite an einer Register page auch jedenfall ich bin fast fertig geworden und nu stört mich der error hier und wollte mal Fragen ob mir da eine Helfen kann. Also.

    Denn haben wir hier einmal den Error

    Error:
    Parse error: syntax error, unexpected ')' in /data/multiserv/users/288330/projects/356647/www/homepage/regist.php on line 96


    Und hier den script

    PHP script:
    <?php
    ini_set('display_errors', 0);
    $connection = mssql_connect('Zensiert', 'Zensiert', 'Zensiert'); //Change YOURHOST and YOURPASSWORD

    //Credits go to Diumelia and zyberscape (For using a small piece of his code). [TINY Bit of credits to me, Cuvvvie, for modifying this page just a bit.]

    if(!connection || !mssql_select_db('ACCOUNT_DBF', $connection))
    {
    die('Konnte keine verbindung herstellen!');
    }

    $checkusername = $_POST['Username'];
    $query = mssql_query("SELECT account FROM ACCOUNT_TBL WHERE account = '$checkusername'");
    $result = mssql_fetch_row($query);

    if(isset($_POST['submit'])){
    if($_POST['Username'] == ""){
    $error = '<font color="red"><b>Please enter a username.</b></font>';
    }
    else if($result[0] == $checkusername){
    $error = '<font color="red"><b>This username already exists. Please choose another one.</b></font>';
    }
    else if($_POST['Password'] == ""){
    $error = '<font color="red"><b>Please enter a password.</b></font>';
    }
    else{
    $password = md5('kikugalanet' . $_POST['Password']);
    $stmt = mssql_init('webCreateAcc', $connection);
    mssql_bind($stmt, '@account', $checkusername, SQLVARCHAR, false, false, 15);
    mssql_bind($stmt, '@password', $password, SQLVARCHAR, false, false, 36);
    mssql_bind($stmt, '@birthday', $checkusername, SQLVARCHAR, false, false, 120);
    mssql_bind($stmt, '@email', $checkusername, SQLVARCHAR, false, false, 120);
    mssql_execute($stmt) or die ("Could not complete the registration. Please try again.");
    mssql_free_statement($stmt);
    $error = '<font color="green"><b>Registration complete!</b></font>';
    }
    )

    echo '<form action="register.php" method="post">';
    echo 'Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Username" /><br /><br />';
    echo 'Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="Password" /><br /><br />';
    echo '<input type="submit" name="submit" value="Register" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp';
    echo '</form>';
    echo $error;

    ?>



    Was kann ich da nun tuhen ich kenne mich nicht so wunderbar aus aber vielleicht kennt ja einer mein Problem. Ich wäre euch auf jedenfall sehr verbunden wenn mir da einer hilft .

    Viele Grüße

    Crystall/Gordon
  • Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )

  • Also ich habe eben den Fehler in der line 93 gefixed aber jetzt zeigt er mir im ganzen an ich hätte in der 122 line einen Fehler. hääääää?????

    Hier der kompletter Homepage script

    Homepage script:
    <!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=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Registration</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>

    <body><center
    <table width="900" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <th colspan="3" scope="col"><img src="Bilder/ranking_01.png" width="900" height="282" /></th>
    </tr>
    <tr>
    <th colspan="3" scope="row"><img src="Bilder/ranking_02.png" width="900" height="34" border="0" usemap="#Map" /></th>
    </tr>
    <tr>
    <th colspan="3" scope="row"><img src="Bilder/register_03.png" width="900" height="47" /></th>
    </tr>
    <tr>
    <th width="206" scope="row"><img src="Bilder/ranking_04.png" width="206" height="577" /></th>
    <td width="478" height="577" align="center" valign="middle" background="Bilder/ranking_05.png"><center>
    <h2 style="font-weight: normal; margin-top: 10px; margin-bottom: 0px;">Endless-Flyff Registration</h2><br>
    </center>
    <form action="index.php?site=register" method="post">
    <table width="258" border="0" align="center">
    <tr>
    <td width="107" height="20">
    <font size="2">Account:</font>
    </td>
    <td width="141">
    <label><input name="user" id="user" size ="15" class="h4" name="user" type="text"/></label>
    </td>
    </tr>
    <tr>
    <td height="25">
    <font size="2">Passwort:</font>
    </td>
    <td>
    <input name="pass1" id="pass1" size ="15" class="h4" name="user" type="password"/>
    </td>
    </tr>
    <tr>
    <td height="24">
    <font size="2">Wdh. Passwort:</font>
    </td>
    <td>
    <input name="pass2" id="pass2" size ="15" class="h4" name="user" type="password"/>
    </td>
    </tr>
    </table>
    <p align="center">
    <input name="submit" type="submit" class="h4" value="Account erstellen" />
    </p>
    </form>
    <div align="center">
    <?php
    ini_set('display_errors', 0);
    $connection = mssql_connect('zensiert', 'zensiert', 'zensiert'); //Change YOURHOST and YOURPASSWORD

    //Credits go to Diumelia and zyberscape (For using a small piece of his code). [TINY Bit of credits to me, Cuvvvie, for modifying this page just a bit.]

    if(!connection || !mssql_select_db('ACCOUNT_DBF', $connection))
    {
    die('Konnte keine verbindung herstellen!');
    }

    $checkusername = $_POST['Username'];
    $query = mssql_query("SELECT account FROM ACCOUNT_TBL WHERE account = '$checkusername'");
    $result = mssql_fetch_row($query);

    if(isset($_POST['submit'])){
    if($_POST['Username'] == ""){
    $error = '<font color="red"><b>Please enter a username.</b></font>';
    }
    else if($result[0] == $checkusername){
    $error = '<font color="red"><b>This username already exists. Please choose another one.</b></font>';
    }
    else if($_POST['Password'] == ""){
    $error = '<font color="red"><b>Please enter a password.</b></font>';
    }
    else{
    $password = md5('kikugalanet' . $_POST['Password']);
    $stmt = mssql_init('webCreateAcc', $connection);
    mssql_bind($stmt, '@account', $checkusername, SQLVARCHAR, false, false, 15);
    mssql_bind($stmt, '@password', $password, SQLVARCHAR, false, false, 36);
    mssql_bind($stmt, '@birthday', $checkusername, SQLVARCHAR, false, false, 120);
    mssql_bind($stmt, '@email', $checkusername, SQLVARCHAR, false, false, 120);
    mssql_execute($stmt) or die ("Could not complete the registration. Please try again.");
    mssql_free_statement($stmt);
    $error = '<font color="green"><b>Registration complete!</b></font>';
    }

    echo '<form action="register.php" method="post">';
    echo 'Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Username" /><br /><br />';
    echo 'Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="Password" /><br /><br />';
    echo '<input type="submit" name="submit" value="Register" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp';
    echo '</form>';
    echo $error;

    ?>
    </div>
    </body></td>
    <td width="216"><img src="Bilder/ranking_06.png" width="216" height="577" /></td>
    </tr>
    <tr>
    <th colspan="3" scope="row"><img src="Bilder/ranking_07.png" width="900" height="60" /></th>
    </tr>
    </table>
    </center>

    <map name="Map" id="Map"><area shape="rect" coords="162,6,210,26" href="index.php" />
    <area shape="rect" coords="218,6,289,27" href="regist.php" />
    <area shape="rect" coords="301,5,380,27" href="#" /><area shape="rect" coords="391,6,478,29" href="download.php" />
    <area shape="rect" coords="486,5,563,25" href="ranking.php" />
    <area shape="rect" coords="571,7,665,25" href="team.php" />
    <area shape="rect" coords="671,6,726,26" href="http://endlessogame.kilu.de/og/index.php" />
    </map></body>
    [COLOR="Olive"]</html>[/COLOR]



    Was soll ich nur tuhen ???

    MFG

    Crystall/Gordon