Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 13:53

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

Advertisement



[Discussion]My [Auth] and [INSERT Query]!

Discussion on [Discussion]My [Auth] and [INSERT Query]! within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
Talking [Discussion]My [Auth] and [INSERT Query]!

Hello every body !!

I was have a prb in my register script but I ... it any way I have seen allot of reg scripts !! and all of it !!

the query like that :
PHP Code:
"INSERT Accounts( login_name,password,block,withdraw_remain_time,age ,auth_ok,pcbang,last_login_server_idx,event_code,result,ip,email) VALUES('$user','$converted_password',0,0,18,1,0,1,0,1,0,0)"
But my Auth Different WHAY ??!! and all of u the same or just me !!


mohamad512 is offline  
Old 08/13/2014, 17:42   #2
 
c1ph3r's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,606
Received Thanks: 1,210
Can you please start using the helpthread. There are two different auth databases which has been discussed several times!
c1ph3r is offline  
Thanks
1 User
Old 08/13/2014, 18:19   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
first of all !! I'm sorry for not using Help Thread !! But no one @@ even lock at the tread !!

and way ^^ !!

can u give me the another auth ? ^
mohamad512 is offline  
Old 08/13/2014, 18:51   #4
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
One auth account table is old, the other auth account table is new...

One works with older server files and one works with the newer server files clients and sframes.

Wouldn't you want to continue using the one that works with your server files?

The registration script was written for another account table...rewrite the script don't change the auth account table.
ThunderNikk is offline  
Old 08/13/2014, 18:53   #5
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
ok my friend but how can i deal with account_id ^^ ?

I rewrite it ^ is it right ?
PHP Code:
INSERT INTO [Auth].[dbo].[Account] ( account_id,account,password,email,pk_ ,creationDate_,updateDate_,creatorId_,updatorId_,portId_,type_,accessDate_,password2 VALUES('','$username','$converted_password','$email','1','','','','','','com.elixir.billing.impl.ImmAccount','','$Apassword2')"; 
mohamad512 is offline  
Old 08/13/2014, 19:00   #6
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
Thought you said you fixed it already/

But yes just rewrite the script to match your table column names.

There will probably be more in the script that will have to be rewritten though than just the SQL insert querry.

You will need to rewrite portions of the registration script that generate those column values.
ThunderNikk is offline  
Old 08/13/2014, 19:20   #7
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
You will need to rewrite portions of the registration script that generate those column values

I DON'T NOW HOW TO DO THAT

THE ERROR always show up @@' the $conn is connected !!
but the prob in $sql !!

it seems right !

PHP Code:
if(count($errors) == 0){
    
        
$sql "INSERT INTO [Auth].[dbo].[Account] ( account_id,account,password,email,pk_ ,creationDate_,updateDate_,creatorId_,updatorId_,portId_,type_,accessDate_,password2 ) VALUES('','$username','$password','$email','1','NULL','NULL','NULL','NULL','NULL','com.elixir.billing.impl.ImmAccount','NULL','$password2')";
        
        if(
$result odbc_exec($conn,$sql)){
            
$success "Account Successfully Created!";
        }else{
            
            
$errors[] = '<font size ="4"><font color="red"><center>SONTHING WRONG</center></font></size>';
        }
    }

mohamad512 is offline  
Old 08/13/2014, 21:19   #8
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
I am sorry I am not very well versed in PHP...my registration script is the one ismokedrow wrote for ASPX

If you really want me to figure out what is going on with the PHP I am going to need to see the entire script not just the insert SQL query.

"THE ERROR always show up @@' the $conn is connected !!"

Sounds like you have some syntax issues to me.
ThunderNikk is offline  
Old 08/13/2014, 21:22   #9
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
ok do u have skype ?

add me mohamad512-aboatallah
mohamad512 is offline  
Old 08/13/2014, 22:53   #10
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
Sorry I don't have a public skype.
ThunderNikk is offline  
Old 08/14/2014, 07:21   #11

 
Musta²'s Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 542
Received Thanks: 421
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.
Musta² is offline  
Old 08/14/2014, 08:53   #12
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
Done my friend But for the Change pass script :

This is wrong can u tell me the right insert query ?! :

PHP Code:
SELECT From [Auth].[dbo].[AccountWHERE account '$username' And Password '$Password'") or die('Failed to verify is the provided user named already exists.'); 
mohamad512 is offline  
Old 08/14/2014, 10:53   #13

 
Musta²'s Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 542
Received Thanks: 421
Quote:
Originally Posted by mohamad512 View Post
Done my friend But for the Change pass script :

This is wrong can u tell me the right insert query ?! :

PHP Code:
SELECT From [Auth].[dbo].[AccountWHERE 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.
Musta² is offline  
Thanks
1 User
Old 08/14/2014, 12:34   #14
 
elite*gold: 0
Join Date: Feb 2013
Posts: 119
Received Thanks: 13
Thanks man and chek ur WhatsApp -،-
mohamad512 is offline  
Old 08/14/2014, 15:38   #15
 
MrStubborn's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 130
Received Thanks: 13
done ?
MrStubborn is offline  
Reply


Similar Threads Similar Threads
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



All times are GMT +2. The time now is 13:53.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.