Ok, I replaced that code, now another error has come up:
Parse error: syntax error, unexpected T_ELSE in /home/tracdoor/public_html/login/index.php on line 35
here are those few lines:
if(isset($_POST['password']))
{
$result = mysql_query("SELECT COUNT(*) WHERE username = '%s'");
mysql_real_escape_string($_POST['username']) or die(mysql_error());
if (mysql_result($result, 0) == 0); {
echo ("This username is already in use, please use another - <a href=http://sam.exofire.net/register.php>try again</a>.");
} else {
mysql_query("INSERT INTO users
(username, password, country, recemails) VALUES ('$_POST[username]', '$_POST[password]', '$_POST[country]', '$recemails' ) ") or
die(mysql_error());
}
}
Anything to get rid of this? so many errors on just a simple registration form!