- Joined
- Nov 22, 2007
- Messages
- 3
- Reaction score
- 0
hey,
I am making some player tools for a server which I am GM on. However, i have come accoss a problem which has stumped me for once and for all.
This will come up with "Admin 1 not good".
these are the character stored in the db
any ideas?
I am making some player tools for a server which I am GM on. However, i have come accoss a problem which has stumped me for once and for all.
PHP:
$result1 = mysql_query("SELECT acct FROM accounts where login = '$username'") or die("=)");
$result2 = mysql_query("SELECT * FROM characters") or die("=)");
$acctno = mysql_result($result1, 0);
echo $username;
echo $acctno;
echo $chars;
if(mysql_affected_rows($result2) == 0){die ("not good");
This will come up with "Admin 1 not good".
these are the character stored in the db
Code:
Char 1: Guid=1 acct=1 name=dave deathstate=1
Char 2: Guid=2 acct=1 name=bob deathstate=1
any ideas?

