Mate, you don't need to force people into looking into your problems to solve them, there's a dedicated thread for that and there are alot of experienced people who have dedicated a part of their time to help people in that manner.
Anyways, I'm answering you with the hope that this will be the last help thread by you, and here are the two ways you can solve this problem with:
1. Make a select sub-query inside your insert query to include a special account_id like this:
Code:
DECLARE @account_id int set @account_id = (SELECT MAX(account_id) FROM Account) INSERT INTO [Auth].[dbo].[Account] ( account_id,account,password,email,pk_ ,creationDate_,updateDate_,creatorId_,updatorId_,portId_,type_,accessDate_,password2 ) VALUES((@account_id)+1,'$username','$password','$email','1','NULL','NULL','NULL','NULL','NULL','com.elixir.billing.impl.ImmAccount','NULL','$password2')
2. Go to the Account table, right click it and click Design. Select the 'account_id' column, then on the bottom, change 'Identity Specification' to 'Yes'. This will allow the column to be auto-calculated as a unique identity such as the old accounts table.
And as I've mentioned above, please stop spamming the general forums with questions when there is a special thread for that.
This is wrong can u tell me the right insert query ?! :
PHP Code:
SELECT From [Auth].[dbo].[Account] WHERE account = '$username' And Password = '$Password'") or die('Failed to verify is the provided user named already exists.');
This is wrong can u tell me the right insert query ?! :
PHP Code:
SELECT From [Auth].[dbo].[Account] WHERE account = '$username' And Password = '$Password'") or die('Failed to verify is the provided user named already exists.');
You can use an alternative method:
PHP Code:
$exists = "SELECT COUNT(*) FROM Auth.dbo.Account WHERE account = '$username' AND password = '$password'";
if ($exists < "1") {
echo "Failed to verify is the provided user named already exists.";
} else {
echo "This account exists, do something here...";
}
I don't know php that well, but it should look something similar to this.
INSERT INTO Item Query? 01/07/2012 - Flyff Private Server - 4 Replies Gibts ne query um items direkt per query ins inventory / als mail zu senden?
Insanityflyff hat dieses ja zB,wenn man ein item auf der homepage auswählt,wirds sofort ins inventory gepackt..
kennt wer den oder einen ähnlichen query :/?
INSERT INTO Query. 11/10/2011 - SRO Private Server - 3 Replies Whats the INSERT INTO query when you want to add items to a characters inventory?
Insert item query 07/31/2011 - Rappelz - 7 Replies HI all,
My commands game001 didnt working, what is the way to inser this :
USE
GO
DECLARE @return_value int
EXEC @return_value = .
hab in auth ordner usr/rain/auth den kompletten inhalt gelöscht 04/09/2010 - Metin2 Private Server - 2 Replies hi
ich hab in auth ordner also usr/rain/auth den kompletten inhalt gelöscht
und eine datei erstellt mit
#!/bin/sh
./auth
sleep 60*5
./auth.sh
nochmal ne kurzfassung:
ich hab versucht den login bug zu fixxen
bin in /usr/rain/auth und hab dort alles gelöscht