Regi Problem

12/13/2013 09:16 Romentiq#1
Hallo, i have a Problem with my Regi Script

[Only registered and activated users can see links. Click Here To Register...]

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
12/16/2013 20:52 OLdLegendServer#2
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);