Hallo, i have a Problem with my Regi Script
[Only registered and activated users can see links. Click Here To Register...]
I didnt know how i could fix that error :/ Could somebody help me pls
You could close the topic, i found the problem
[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