So hier stehen noch keine Verbindungsdetails zum MSSQL Server!
Die kommen jetzt!
- Erstellt einen neuen Ordner und nennt ihn "configs" (ohne den "")
- In dem Ordner erstellt ihr eine neue .php Datei und nennt diese "reg_conf" (ohne den "")
- In der reg_conf.php schreibt ihr jetzt folgendes rein:
Code:
Code:
<?php
$link = @mssql_connect([COLOR="Red"]"COMPUTERNAME\SQLEXPRESS", "sa", "passwort"[/COLOR]) or die ("Server is down!");
$db = @mssql_select_db('ACCOUNT_DBF') or die ("Accout table is missing!");
$b = '';
$mail = '';
?>
Hier wird jetzt die Verbindung zum MSSQL Server eingestellt.
Einfach die rot markierten Felder bearbeiten!
So und das hier muss in MSSQL ausgeführt werden:
Code:
Code:
USE [ACCOUNT_DBF]
GO
/****** Object: StoredProcedure [dbo].[webCreateAcc] Script Date: 08/17/2009 21:30:28 ******/
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_no2, isuse, member, realname)
VALUES (@account, @password, @password, 'T', 'A', 'F')
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
bei der register page muss nirgendwo die hamachi ip hin. sa bleibt sa. Zwischen den beiden "" hinter sa kommt das mssql passwort. Beispiel: "hallo". Dor wo PCNAME/SQLEXPRESS steht kommt bei pc name der name deines pcs rein. Beispiel: MAX-PC/SQLEXPRESS
@Snow man 12
.php ist die dateiendung nicht er name. Solltest du win7 oder win vista haben erstell erstmal eine textdatei (dort ist noch egal wie sie heißt) in diese textdatei schreibst du das script rein. Jetzt klickst du oben auf speichern unter und klickst in das feld unter dateiname. Dort musst du dann "alle dateiendungen"auswählen und dann schreibst in das fehlt dateiname also unter welchem namen das dokument gespeichert werden soll folgendes rein: reg_conf.php
Das sollte klappen
Ichhoffe ich konnte euch helfen
Lg
Phillor
habs mit Fame Tempalte von Sedrika veruscht klappt aber iwei nicht und wie ich das eine da in MSQL ausführen soll weis ich auch net da komtm imer Meldung.
und auf HP wenn ich auf Reg gehe kommt immer der php code .
wie geht den das nun mit dem account erstellen ich check hier garnix, hab nur noch bahnhof im kopf^^ kann das also mal pls jmd schritt für schrit erklären?
can anyone get my register page? 06/22/2010 - CO2 Private Server - 2 Replies if anyone knows my ip can he get my register page? and if he can how can i make it impossible to download my registe page plz help meh
Register page 06/08/2010 - CO2 Private Server - 2 Replies Now the last thing i need is a register page for the 5165 source.
I use the one from arcos thread.
Well, I ve searched around forum, but all i found is for sql.
Anyone for ini?
[Help]register page 09/25/2009 - CO2 Private Server - 9 Replies hey guys
i need help to make Register page for TQ binary 3.0
pls if any one know tell me how to make good one or good guide :)
[Q] PHP Register Page 09/22/2009 - Dekaron Private Server - 24 Replies Ok normaly i dont ask it here but iam willing to give it a shot
When i go to my register page localhost:8070/register/register.php
i fill in all the info and press "Create Account" it will show me
"page cant be found"
The error