also das script geht nicht!
Ich habe nun ein anderes und das geht
Ich habe nun ein anderes und das geht
Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )
despiteous;60375 schrieb:
Nydn;67827 schrieb:
Nydn;67827 schrieb:
[/SIZE][/COLOR][/FONT]
freackblader;66672 schrieb:
Bei mir is die Seite komplett weiß.
Steht nix, nur weiß xD
Bitte um Hilfe :x
Danke im voraus ^-^
dennisdra;75557 schrieb:
So hab das Script jetzt geändert das es funktioniert:
Alles anzeigenPHP-Quellcode
- <?php
- ini_set('display_errors', 0);
- $connection = mssql_connect('DENNIS-PC\SQLEXPRESS', 'sa', 'hier euer passwort plz rein');
- 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['Password'] == ""){
- $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: <input type="text" name="Username" /><br /><br />';
- echo 'Passwort: <input type="password" name="Password" /><br /><br />';
- echo 'Passwort wiederholen: <input type="password" name="Password2" /><br /><br />';
- echo 'Geburtsdatum: <input type="text" name="birthday" /><br /><br />';
- echo 'E-mail Adresse: <input type="text" name="mail" /><br />';
- echo '<input type="submit" name="submit" value="Registrieren" />';
- echo '</form>';
- echo $error;
- ?>
Wenn ich euch geholfen habe, plz ein thx geben xD