[Dev Paylaşım]Oto Üyelik Yapma 'Login hatası alıyorum diyenler' Gelin . 'Resimli'

E Çevrimdışı

ediz3

Kayıtlı Üye
9 Ekim 2012
119
1
18
32
Resimler

-----------------------1. RESİM-----------------------

55714984ba6.jpg


----------------------2. RESİM-------------------------------------

a2ma0.jpg


----------------------3. RESİM-------------------------------------

a3fx6.jpg


----------------------4.RESİM--------------------------------------

a4xp6.jpg


5.RESİM

a5it3.jpg


Bu beşinci resimde lazım olan kodlar buyrun:

İçerik Açılmıştır Teşekkürler :)
CREATE PROCEDURE MYST_LOGIN

@AccountID varchar(21),

@Password varchar(13),

@nRet smallint OUTPUT

AS

--CurrentUserdan Silelim

delete from currentuser where straccountid = @AccountID

-- Oto Üyelik

select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

if @nRet = 0

begin

insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')

end



DECLARE @Nation tinyint, @CharNum smallint

SET @Nation = 0

SET @CharNum = 0

DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID

IF @pwd IS null

BEGIN

SET @nRet = 0

RETURN

END

ELSE IF @pwd <> @Password

BEGIN

SET @nRet = 0

RETURN

END

DECLARE @PremiumServiceDEC varchar(21)

select @PremiumServiceDEC = count(straccountid) FROM premium_service WHERE strAccountID = @AccountID

if @PremiumServiceDEC = 0

begin

insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)

end

SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID

IF @@ROWCOUNT = 0

BEGIN

SET @nRet = 1

RETURN

END

IF @CharNum >= 0

BEGIN

SET @nRet = 1

RETURN

END

ELSE

BEGIN

SET @nRet = @Nation+1

RETURN

END

GO
6.RESİM

a6wo7.jpg


7.RESİM

a7vx4.jpg


8.RESİM

a8gx1.jpg


Gelelim sekizinci resimde lazım olan kod'a buyrun:



İçerik Açılmıştır Teşekkürler :)
Kod:

CREATE PROCEDURE ACCOUNT_LOGIN

@AccountID varchar(21),

@Password varchar(13),

@nRet smallint OUTPUT

ASCurrentUserdan Silelim

delete from currentuser where straccountid = @AccountID

-- Oto Üyelik

select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

if @nRet = 0

begin

insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')

end

-- Orjinalin Devamı

DECLARE @Nation tinyint, @CharNum smallint

SET @Nation = 0

SET @CharNum = 0

DECLARE @pwd varchar(13)

SET @pwd = null

SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID and idays=6

IF @pwd IS null

BEGIN

SET @nRet = 0

--SET @nRet = 4

RETURN

END

ELSE IF @pwd <> @Password

BEGIN

SET @nRet = 0

--SET @nRet = 3

RETURN

END

DECLARE @PremiumServiceDEC varchar(21)

select @PremiumServiceDEC = count(straccountid) FROM premium_service WHERE strAccountID = @AccountID

if @PremiumServiceDEC = 0

begin

insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)

end

SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID

IF @@ROWCOUNT = 0

BEGIN

SET @nRet = 1

RETURN

END

IF @CharNum = 0

BEGIN

SET @nRet = 1

RETURN

END

ELSE

BEGIN

SET @nRet = @Nation+1

--SET @nRet = 1

RETURN

END

GO




RESİM 9.

a9ge1.jpg


RESİM 10.

a10jy8.jpg




İşlemimiz bu kadar, iyi forumlar :)

ALINTIDIR
 
Üst