Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 18:00

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

 

problem with registration script

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 80
Received Thanks: 1
problem with registration script

Good evening I have a problem with the registration script.
When I go on
he wrote:

( ! ) Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\register.php on line 9
Call Stack
# Time Memory Function Location
1 0.0007 683416 {main}( ) ..\register.php:0

I used wamp server, my register.php :
PHP Code:
<?php 

    $host 
"5.108.3.228\\SQLEXPRESS"// your sql instance 
    
$user "sa"// username 
    
$pw "123456"// password 
    
$db "Auth"// db 
    
$md5_key "2011"// your md5 key 
     
    
$connect mssql_connect($host,$user,$pw
    or die(
"Can't connect to the datebase."); 
     
    
mssql_select_db($db,$connect
    or die(
"Can't select the datebase"); 

?> 

<html> 
  <head> 
    <title>Register</title> 
    <center> 
    <h3 style="color:red">Rappelz : Register Page ( Pls insert more then 4 chars ! )</h3>  
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> 
      Username : <input type="text" size="20" name="username" /><br /> 
      Password : <input type="password" size="20" name="password" /><br /><br /> 
      <input type="submit" value="Register now !" name="senden" /> 
    </form> 
    <?php 
     
      $usr 
$_POST['username']; 
      
$pass $_POST['password']; 
      
$endPw $md5_key $pass
      
$md5 md5($endPw); 
       
      
$results mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name"); 
      
$res mssql_num_rows($results); 
       
      if(
strlen($usr) > && strlen($pass) > 4
      { 
          if(
$res 0
          { 
              echo 
"Account Exists !"
          } 
          else 
          { 
              
mssql_query("INSERT INTO dbo.Accounts(login_name,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result) VALUES('$usr','$md5',0,0,18,1,1,1,0,1)"); 
              echo 
"Registration Success !"
          } 
      } 
      else 
      { 
          echo 
"Username or Password to small..."
      } 
     
    
?> 
    </center> 
  </head> 
</html>



said200 is offline  
Old   #2
 
elite*gold: 0
Join Date: Dec 2010
Posts: 90
Received Thanks: 10
rly fail ...

$host = "5.108.3.228\\SQLEXPRESS"; // your sql instance

is wrong ... not make u'r ip before \\SQLEXPRESS ... make u'r pc name there


dominicrode is offline  
Old   #3


 
elite*gold: 30
Join Date: May 2011
Posts: 4,795
Received Thanks: 3,179
Quote:
Originally Posted by dominicrode View Post
rly fail ...

$host = "5.108.3.228\\SQLEXPRESS"; // your sql instance

is wrong ... not make u'r ip before \\SQLEXPRESS ... make u'r pc name there
The only fail here is your answer.
I mean, yes, this would cause an error, but NOT the error which he says.

Code:
( ! ) Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\register.php on line 9
What does it says? The mssql_connect() function doesn't exist. What does this says? The .dll is missing.

Use the Sql Server Driver for PHP.
Xijezu is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Registration Script
Hey guys, I was hoping to find someone to teach me how to make the .php registration page. feel free to give me links for it lol gonna really...
5 Replies - CO2 PServer - Discussions / Questions
registration-script
registration-script help ): http://im15.gulfup.com/2011-11-18/1321617604911.jpg
0 Replies - Rappelz Private Server
BK-Registration(Script....)
Hallo, fast alle verwenden Scripts, oder manche einen 5ms Ping haben(?!), schaffe ich es nie zu registrieren. dieses habe ich, aber...
4 Replies - General Gaming Discussion
registration script
hello can any one give me a good registration script and working i try this but didnt work <?php $host = "(local)\\RappelzSQL"; //...
4 Replies - Rappelz
Looking for help: Registration Script
We have the script we have a site but we dont know what to do with any of it. Is their anyone who can possibly do it for us?
1 Replies - Shaiya Private Server



All times are GMT +2. The time now is 18:00.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.