[Help]Register Script Error for iRose

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 13, 2007
Messages
52
Reaction score
0
I am currently making an account creation script for my website. These files are the original unedited ones that I got from Shockers. I have edited them so people can't access the log file that it creates except for me. When i use the original i get the error :
Code:
[B]Fatal error[/B]: Using $this when not in object context in C:\xampp\htdocs\modules\funcs.inc.php on line ##
I have no idea why i get this error due to the fact that I am self teaching myself all the code for my Server. If you have any ideas on how i could fix this it would be greatly appreciated.
 
Last edited:
EDIT: Woops my bad. Thought it was MySQL..... ok well so I edited my post. The information below should be for MSSQL.

Oh and you're using MSSQL Server right? And if so what version (2000 or 2005)?

Code:
$this->db = mssql_connect( 'YOURIP', 'LOGIN', 'PASS' );

In funcs.inc.php (line 8 - including spaces) down, there should be that code. 'YOURIP' should be NAME/SQLEXPRESS (or if you have something different), 'LOGIN' should be sa (or if you have something different), and 'PASS' should be your password.

So an example would be:
Code:
$this->db = mssql_connect( 'iROSE/SQLEXPRESS', 'sa', 'blabla' );

Hope this helps. If not, try responding back.

P.S. This should work. This code seems similar to my PristonTale script that connects to an Account Manager. I'll check back every 30 minutes. I'm going to play some CS 1.6 or FFR.
 
Last edited:
May I see a picture of how the login screen for MSSQL 2000 looks like? I only know what 2005 looks like, I never knew what 2000 looked like.
 


try this website.. change the same thing as usual

( 'YOURIP', 'LOGIN', 'PASS' )

ex ( '127.0.0.1', 'sa', 'rl1password' )


the only problem on that site is even if you successfully registered still no "status"
 
Well it looks like (in the picture) that you use Windows Authentication instead of SQL Server Authentication. Usually only SQL Server authentication is "sa" and "password". *Correct me if I'm wrong.
 
Please m ake it clear.. did you use the webfile that ive reposted? or not?

I used parts of both files and some more code of my own to make one secure registration script. Now i am working on a "players online" and a "top players" script.
 
Status
Not open for further replies.
Back