Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya
You last visited: Today at 23:08

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

Advertisement



Web Register

Discussion on Web Register within the Shaiya forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 76
Received Thanks: 20
Web Register

If anyone here is willing to help me out plz

i am trying to set a Web Register for my PS

But i get this error

Parse error: syntax error, unexpected T_DNUMBER, expecting ']' in /home/a9867997/public_html/processor.php on line 3
-Elliot- is offline  
Old 09/02/2010, 03:16   #2
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
What's on line 3 of your processor.php?
abrasive is offline  
Old 09/03/2010, 00:28   #3
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
ur database username/pw/ip set? i dont believe it is.
AriezOMG is offline  
Old 09/03/2010, 13:09   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 76
Received Thanks: 20
<?php

$ip = $_SERVER['69.1.0.2.85'];
$login = trim($_POST['Shaiya']);
$pass = trim($_POST['Shaiya123']);
$repass = trim($_POST['Shaiya123']);
-Elliot- is offline  
Old 09/03/2010, 17:10   #5
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
Quote:
Originally Posted by -Elliot- View Post
<?php

$ip = $_SERVER['69.1.0.2.85'];
$login = trim($_POST['Shaiya']);
$pass = trim($_POST['Shaiya123']);
$repass = trim($_POST['Shaiya123']);
I don't see any syntax errors in that, but for your $ip variable I think you just want:
Code:
$ip = '69.1.0.2.85'
There's no index in the $_SERVER array named '69.1.0.2.85'.

Are you still getting the error you mentioned in the first post?
abrasive is offline  
Old 09/03/2010, 18:02   #6
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
Quote:
Originally Posted by -Elliot- View Post
<?php

$ip = $_SERVER['69.1.0.2.85'];
$login = trim($_POST['Shaiya']);
$pass = trim($_POST['Shaiya123']);
$repass = trim($_POST['Shaiya123']);
I don't remember login and pass text fields being called Shaiya or Shaiya123. Are you trying to insert default values in User and Pw fields this way? Skip the trim and $_POST then. By the way, read some about global variables and arrays in PHP if you want to tinker with it.
ProfNerwosol is offline  
Old 09/04/2010, 05:38   #7
 
elite*gold: 0
Join Date: Sep 2009
Posts: 76
Received Thanks: 20
ProfNerwosol im using xampp now, but now i get a different error

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\processor.php on line 20


mysql user = root
mysql password = kwda11kwda

phpmyadmin user = pma
mysql password = 4c8ad1b6b336eec


this is my informacion

and this is the line 20

$conn=mssql_connect("$dbhost","$dbuser","$dbpass") ;


Do i have to do this way i mean like this

$conn=mssql_connect("$Ramont","$root","$kwda11kwda
");
-Elliot- is offline  
Old 09/04/2010, 05:50   #8
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
You need to install mssql support for php so the mssql_connect function exists first.

I would edit out those usernames and passwords if they are real.

You pass variables into the mssql_connect function, which you assign values to first. Like if your host is 192.168.1.44, and the root user's password is "p1zza$_", you would use it something like this:
Code:
$dbhost = "192.168.1.44";
$dbuser = "root";
$dbpass = "p1zza$_";
$conn = mssql_connect($dbhost,$dbuser,$dbpass);
There's no need for quotes around the variable names, only their values.
abrasive is offline  
Old 09/04/2010, 09:06   #9
 
elite*gold: 0
Join Date: Sep 2009
Posts: 76
Received Thanks: 20
I keep geting error 20 on this line


$conn=mssql_connect("$dbhost","$dbuser","$dbpass") ;
Original

and this is was i edit

$conn=mssql_connect(127.0.0.1,pma,373166);

Still giving me a Error on line 20 can anyone help me solve this issue thanks
-Elliot- is offline  
Old 09/04/2010, 09:16   #10
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
No, read about PHP and its functions. This is not a PHP selfhelp forum.
ProfNerwosol is offline  
Old 09/04/2010, 10:08   #11
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
Quote:
Originally Posted by ProfNerwosol View Post
No, read about PHP and its functions. This is not a PHP selfhelp forum.
I agree, also not knowing what you are doing in this case is dangerous.
abrasive is offline  
Old 09/04/2010, 16:03   #12
 
elite*gold: 0
Join Date: Sep 2009
Posts: 76
Received Thanks: 20
Quote:
Originally Posted by abrasive View Post
I agree, also not knowing what you are doing in this case is dangerous.
im not doing nothing dangerous i just want to know how can i resolve that error, what im doing wrong
-Elliot- is offline  
Old 09/04/2010, 21:46   #13
 
elite*gold: 0
Join Date: Dec 2009
Posts: 131
Received Thanks: 70
Quote:
Originally Posted by -Elliot- View Post
ProfNerwosol im using xampp now, but now i get a different error

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\processor.php on line 20


mysql user = root
mysql password = kwda11kwda

phpmyadmin user = pma
mysql password = 4c8ad1b6b336eec


this is my informacion

and this is the line 20

$conn=mssql_connect("$dbhost","$dbuser","$dbpass") ;


Do i have to do this way i mean like this

$conn=mssql_connect("$Ramont","$root","$kwda11kwda
");
Simple fix.
Change
$conn=mssql_connect("$dbhost","$dbuser","$dbpass") ;
To
$conn=mssql_connect('$dbhost','$dbuser','$dbpass') ;
or
$conn=mssql_connect('127.0.0.1','$dbuser','$dbpass ') ;
If your Xammp is running on local host with the DB.

Your welcome
Phish

Edit: Let me add.. I hope your webserv is secure as your releasing such sensative data is a major security risk.
13latrix is offline  
Old 09/05/2010, 00:14   #14
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
Quote:
Originally Posted by 13latrix View Post
Simple fix.
Change
$conn=mssql_connect("$dbhost","$dbuser","$dbpass") ;
To
$conn=mssql_connect('$dbhost','$dbuser','$dbpass') ;
or
$conn=mssql_connect('127.0.0.1','$dbuser','$dbpass ') ;
If your Xammp is running on local host with the DB.

Your welcome
Phish

Edit: Let me add.. I hope your webserv is secure as your releasing such sensative data is a major security risk.
Why are you putting single quotes around the variables?

You are using the variable names as a string, and not actually passing the data contained within the variables to the mssql_connect function.
abrasive is offline  
Old 09/05/2010, 06:51   #15
 
elite*gold: 0
Join Date: Dec 2009
Posts: 131
Received Thanks: 70
Dont question what works... he asked for a fix and its tested. I've sen his problem on several servers and this is the fix.

~Phish
13latrix is offline  
Reply


Similar Threads Similar Threads
SRO- where i register?
05/04/2010 - SRO Private Server - 0 Replies
title says it all. EDIT: how i make it english
can not register me
09/11/2008 - SRO Private Server - 1 Replies
have someone a account for me?
register help
07/14/2008 - EO PServer Hosting - 1 Replies
i have a problem with my register script it keeps saying invalid id/password idk what to do
CAN SOME ONE HELP ME REGISTER
04/20/2008 - Dekaron Private Server - 1 Replies
HELP :( WHEN I TRY TO REGISTER AT DEKARON PSERVER I GET AN ERROR :( PLEASE HELP MEEE
EVERYBODY COME AND REGISTER!!
03/31/2008 - Conquer Online 2 - 12 Replies
#Removed by leavemealone



All times are GMT +2. The time now is 23:08.


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.