Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 03:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Register MsSQL Problem

Discussion on Register MsSQL Problem within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 2,107
Received Thanks: 651
Register MsSQL Problem

Hallo zusammen,

ich habe seitdem ich in meiner DB eine neue Spalte hinzugefügt habe, probleme beim registrieren, undzwar erstellt er den Account nicht mehr.
Zum registrieren benutze ich eine Prozedur.

Ich habe gestern eine neue Spalte hinzugefügt ( uid, mit AI ).
Seitdem kann ich mich aber nicht mehr registrieren.

Hier mal die ganzen Codes:
register ( nur die query ):
PHP Code:
@odbc_exec($connection'EXEC [ACCOUNT_DBF].[dbo].[usp_CreateNewAccount] @account=\''.$account.'\', @pw=\''.$md5pw.'\', @email=\''.$email.'\', @gefra=\''.$gefra.'\', @geant=\''.$geant.'\''); 
die Tabelle:
Code:
USE [ACCOUNT_DBF]
GO

/****** Object:  Table [dbo].[ACCOUNT_TBL]    Script Date: 02/22/2013 17:23:20 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[ACCOUNT_TBL](
	[account] [varchar](32) NOT NULL,
	[password] [varchar](32) NOT NULL,
	[isuse] [char](1) NOT NULL,
	[member] [char](1) NOT NULL,
	[id_no1] [varchar](32) NULL,
	[id_no2] [varchar](32) NULL,
	[realname] [char](1) NOT NULL,
	[reload] [char](1) NULL,
	[OldPassword] [varchar](32) NULL,
	[TempPassword] [varchar](32) NULL,
	[cash] [int] NULL,
        [uid] [int] IDENTITY(1,1) NOT NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO
und die Prozedur:
Code:
USE [ACCOUNT_DBF]
GO
/****** Object:  StoredProcedure [dbo].[usp_CreateNewAccount]    Script Date: 02/23/2013 10:08:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[usp_CreateNewAccount]
@account varchar(32),
@pw varchar(32),
@cash int = 0,
@email varchar(100),
@gefra int,
@geant varchar(100)
as
set nocount on
set xact_abort on

if not exists (select * from ACCOUNT_TBL where account = @account)
begin


	begin tran
	INSERT ACCOUNT_TBL(account,password,isuse,member,id_no1,id_no2,realname,OldPassword,TempPassword,cash)
	VALUES(@account, @pw, 'T', 'A', '', '', '',@pw, @pw, @cash)
	INSERT ACCOUNT_TBL_DETAIL(account,gamecode,tester,m_chLoginAuthority,regdate,BlockTime,EndTime,WebTime,isuse,secession,email,geheimfrage,geheimantwort)
	VALUES(@account,'A000','2','F',GETDATE(),CONVERT(CHAR(8),GETDATE()-1,112),CONVERT(CHAR(8),DATEADD(year,10,GETDATE()),112),CONVERT(CHAR(8),GETDATE()-1,112),'T',NULL,@email,@gefra,@geant)
	insert AccountPlay (Account, PlayDate)
	select @account, convert(int, convert(char(8), getdate(), 112))

	if @@error <> 0
	begin
		rollback tran
		select -1
	end
	else
	begin
		commit tran
		select 1
	end
end
else
begin
	select 0
end
ich habe an der Prozedur nachdem ich die Tabelle erstellt habe nichts geändert, da uid ja automatisch gesetzt wird.

Ich hoffe jmd hat eine Lösung.



#Edit: Problem behoben
BattleTale is offline  
Reply


Similar Threads Similar Threads
Fix Mssql Problem
10/30/2011 - SRO Private Server - 1 Replies
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\reg\index.php on line 66 help me to fix problem
[REQUEST] XAMPP for send php code register MSSQL
08/06/2011 - Shaiya Private Server - 4 Replies
As the text says :rtfm: :handsdown: ;)
Register Page MSSQL Verbindung klappt net
12/22/2010 - Flyff Private Server - 2 Replies
Moin Mein Server läuft nun - doch wie sollte es auch anders sein ... Jetzt scheiterts an der Erstellung der Homepage, zumindest wenn es um Scripte geht die auf die PServer Datenbank zugreifen sollen. Zum Beispielt das Register Script ... trotz korrekter Verbindungsdaten ... immer die nette Meldung "Server is down" Ich hab nun mitlerweile schon fast alles probiert ... Für Dinge wie Serverinfos ect hab ich mir im Plesk Pannel die ODBC Connections eingerichtet und die entsprechenden...
Account Register Seite mit mssql
01/27/2010 - Flyff Private Server - 2 Replies
hi weiss wer wie ich ne registerseite machen bei mssql also dass die oen die adresse eingeben und dann könen se sich registrieren
V14 db problem (mssql)
01/26/2010 - Flyff Private Server - 4 Replies
hey und zwar habe ich alles gemacht wie es in diesem thread steht http://www.elitepvpers.com/forum/flyff-pserver-disc ussions-questions/430024-release-how-offical-v14-f iles.html aber wenn ich db bei mssql aufrufen will und oben auf ausführen klicke kommt da riesen eror teil hier:



All times are GMT +1. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.