Problem mit MSSQL und HP

    • Problem mit MSSQL und HP

      Hallo Leute,

      ich wusste nich wohin ich diesen Thread rein packen sollte. Wenns falsch ist bitte verschieben.

      Und jetzt zu mein Problem. Ich habe folgenden Fehler ich habe die offi Files v15 und brauchte ein Register script. Ich habe das hier genommen mmorpg-core.com/forum/guides-r…-registerscript-6450.html .

      Und wenn ich den Code speicher und auf 127.0.0.1 aufrufen will dann kommt das hier Pic-Upload.de - Kostenlos Bilder & Fotos hochladen

      könnte mir einer sagen wie ich es beheben kann?

      Und noch was in dem SQL Server Management komm ich rein, also kann der MSSQL Server nicht down sein oder doch?

      Gruß

      Torre
    • Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )

    • Ich benutze Xampp aber ich habe noch nie davon gehört das man MSSQL in Xampp aktivieren kann. Wenn ich eine info.php mache dann kommt unten auch MSSQL vor.

      Das ist mein Srcipt:

      <?php

      ini_set('display_errors', 0);
      $connection = mssql_connect('Joel73/SQLExpress', 'sa', 'kopier');

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

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

      if(isset($_POST['submit'])){
      if($_POST['Username'] == ""){
      $error = '<font color="red">Bitte gib deinen Accountnamen an.</font>';
      }
      else if($result[0] == $checkusername){
      $error = '<font color="red">Dein Accountsname ist bereits vergeben.</font>';
      }
      else if($_POST['Passwort'] == ""){
      $error = '<font color="red">Bitte ein Passwort eingeben.</font>';
      }
      else if($_POST['Password2'] == ""){
      $error = '<font color="red">Du hast kein Passwort angegeben.</font>';
      }
      else if($_POST['Password'] != $_POST['Password2']){
      $error = '<font color="red">Deine Passwörter stimmen nicht ün</font>';
      }
      else if($_POST['birthday'] == ""){
      $error = '<font color="red">Bitte gib dein Geburtsdatum an.</font>';
      }
      else if($_POST['mail'] == ""){
      $error = '<font color="red">BItte gib deine E Mail Adresse an.</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', $_POST['birthday'], SQLVARCHAR, false, false, 120);
      mssql_bind($stmt, '@email', $_POST['mail'], 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">Dein Account Wurde erstellt</font>';
      }
      }

      echo '<form action="register.php" method="post">';
      echo 'Account:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Username" /><br /><br />';
      echo 'Passwort:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="Password" /><br /><br />';
      echo 'Passwort wiederholen: <input type="password" name="Password2" /><br /><br />';
      echo 'Geburtsdatum: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="birthday" /><br /><br />';
      echo 'E-mail Adresse: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="mail" /><br />';
      echo '<input type="submit" name="submit" value="Registrieren" />';
      echo '</form>';
      echo $error;

      ?>
    • Kev!;194045 schrieb:

      Zitier mal bitte dein Script, wie du es eingetragen hast ...

      Vielleicht können wir die dann helfen.
      Ausserdem muss MSSQL in xampp, appserv oder einem anderen Webserver, den du hast, aktiviert sein.


      MfG,
      Kev


      Der dients SQL Server läuft bei ihm.
      Hatte mir das schon via TV angesehn aber auch keine lösung gefunden (da mir auch nix einfällt :x )
      MSSQL ist ebenso als exention frei.

      Mfg
      Cross