Register for your free account! | Forgot your password?

You last visited: Today at 02:57

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

 

Regi Problem

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 21
Received Thanks: 0
Regi Problem

Hallo, i have a Problem with my Regi Script



PHP Code:
}
 
$connect mssql_connect('(local)','user','password');
    if (!
$connect) {echo 'connection error'; exit;}
    
mssql_select_db('Auth'$connect) or die('connection error'); 
    
$array_char = array("'","/","\\","*",":","!","?""&""%""","^""$""=","","}","{","(",")","~","#","[","]","","","","€","",";","","","","`","<",">");
    
$username trim(str_replace($array_char"",$_POST['username']));
    
$password trim(str_replace($array_char"",$_POST['password']));
    
$confirmpass trim(str_replace($array_char"",$_POST['confirmpass']));
    
$email trim(str_replace($array_char"",$_POST['email']));
    
$hash md5("2011$password");
 if(
is_valid_email($email)){
    if(
$password == $confirmpass){
        if(
strlen($username) >= 5){
            if(
strlen($password) >= 5){
                
$query_check ="SELECT account from Account WHERE account='$username'";
                
$query "INSERT Account(email,account,password) VALUES('$email','$username','$hash')";
                
$results_check mssql_query($query_check);
                if(
mssql_fetch_row($results_check) == 0){
                    if(
mssql_query($query)){ 

I didnt know how i could fix that error :/ Could somebody help me pls

You could close the topic, i found the problem



Romentiq is offline  
Old   #2
 
elite*gold: 0
Join Date: Nov 2013
Posts: 4
Received Thanks: 1
hi ,
I wana to help you ..
first : did you enable PHP MSSQL function ?
second : which WebServer engine did you use ?
third : try this code for connect to MSSQL engine



PHP Code:
$db "database name";
$host "127.0.0.1";
$user ="sa";
$pass="sa password";

$linkmssql_connect($host$user$pass);
mssql_select_db($db,$link) or die("Can't select the datebase");
$Query="";
mssql_query($Query); 


OLdLegendServer is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Problem!!!]MT2 P-Server Regi Page DynDns Problem!
Servus Leute, ich habe da ein kleines Problem mit meinem Pserver.(DynDns) Ich habe meine Homepage auf mein Server hochgeladen, habe es...
3 Replies - Metin2 PServer - Discussions / Questions
[EP1]Problem mit Regi
Guten Tag Wir haben jetzt wirklich alle im Server hinbekommen und er ist auch bereit Online zu kommen nur wir bekommen die Regipage mit Xammp...
4 Replies - Last Chaos Private Server
Problem bei Regi
Hey, da ich nun mein ersten Acc aufgeben will :D (dumme kd :awesome: ) wollte ich mich halt neu registirieren^^ Aber als ich das machen wollte,...
12 Replies - WarRock



All times are GMT +2. The time now is 02:57.


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.