Hello, the code below doesn't print anything in the simple AAC I'm working on.
And this code writes "Character name already taken" all the time
Any1 could solve it?
Code:
$result = mysql_query("SELECT id FROM accounts WHERE name= '".$accountName."';");
while($row[] = mysql_fetch_array($result)) {
echo $row[$numb][1];
echo '<p>';
$numb += 1;
}
And this code writes "Character name already taken" all the time
Code:
if(mysql_query("SELECT count(*) FROM players WHERE name = '" .$charName."';") > 0) {
die('Character name already taken!');
}
Any1 could solve it?