here my username is know as callsign
there is a problem somewhere that i cant find
and i present the code:
$callsign = mysql_real_escape_string($_POST["CallSign"]);
$result = mysql_query("SELECT * FROM users WHERE CallSign = '$callsign'");
$row = mysql_fetch_array($result);
echo $row['CallSign'] . "<br>";
$sql = "SELECT COUNT(*) FROM users WHERE CallSign = '$callsign'";
$result = mysql_query($sql) or die('error');
if($result > 0)
{
echo "That CallSign has been claimed Already!<br>";
echo "<p><a href='register.php'>Return to Try Again</a><br>";
}