• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Zone Gamerz Register Problem

Newbie Spellweaver
Joined
Jun 3, 2011
Messages
70
Reaction score
0
hello ragezone

anyone know about this problem

error says

Warning: mssql_query() [function.mssql-query]: message: An explicit value for the identity column in table 'Account' can only be specified when a column list is used and IDENTITY_INSERT is ON. (severity 16) in C:\xampp\htdocs\include\form.php on line 145

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\include\form.php on line 145
7bf6a5111a982b58

REMOVED

and here my line 145 on form.php

mssql_query("INSERT INTO Account VALUES ('$Email', '$UserID', '$Password' , '$UserKey', '0', NULL, NULL, NULL, '$SecretQuestion', '$Answer', '$FirstName', '$MI', '$LastName', '$Birthday', '00:00:00', '$Sex', '$Address', NULL, NULL, '$Country', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$_SERVER[REMOTE_ADDR]', newid(), GETDATE(), 0, NULL, 0, 0, 0, NULL, 0, 1, NULL, 0, 0, NULL, NULL, 0, '$KSCode', 0, '$KSActivation')") or die($KSActivation);

Big Thanks To Anyone who help me and Also ragezone
 
Tantra Freelancer
Joined
Apr 9, 2014
Messages
541
Reaction score
23
Please open C:\xampp\htdocs\include\form.php and paste here Line 145. I want to see what's in there.
 
Custom Title Activated
Loyal Member
Joined
Mar 26, 2012
Messages
1,465
Reaction score
131
My Version:
PHP:
mssql_query("INSERT INTO Account VALUES ('$Email', '$UserID', '$Password' , '$UserKey', '0', NULL, NULL, NULL, '$SecretQuestion', '$Answer', '$FirstName', '$MI', '$LastName', '$Month/$Day/$Year 00:00:00', '$Sex', '$Address', NULL, NULL, '$Country', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$_SERVER[REMOTE_ADDR]', newid(), GETDATE(), 0, NULL, 0, 0, 0, NULL, 0, 1, NULL, 0, 0, NULL, NULL, 0, '$KSCode', 0, '$KSActivation')") or die($KSActivation);

Your Corrected Version:
PHP:
mssql_query("INSERT INTO Account VALUES ('$Email', '$UserID', '$Password' , '$UserKey', '0', NULL, NULL, NULL, '$SecretQuestion', '$Answer', '$FirstName', '$MI', '$LastName', '$Birthday 00:00:00', '$Sex', '$Address', NULL, NULL, '$Country', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$_SERVER[REMOTE_ADDR]', newid(), GETDATE(), 0, NULL, 0, 0, 0, NULL, 0, 1, NULL, 0, 0, NULL, NULL, 0, '$KSCode', 0, '$KSActivation')") or die($KSActivation);



You are adding one more row than what is needed there. This is the correct registration for the database. Look at the Birthday and you will see exactly what I mean.
 
Last edited:
Back
Top