Forum Moderators: coopster
mysql_select_db("test") or die(mysql_error());
$data = mysql_query("SELECT accounts.id, accounts.username, characters.account, characters.charactername
FROM accounts, characters
WHERE accounts.id = characters.account
ORDER BY accounts.id
")
or die(mysql_error());
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th>Character Name:</th> <td>".$info['charactername'] . "</td> ";
Print "<th>Account ID:</th> <td>".$info['id'] . "</td> ";
Print "<th>Account Name:</th> <td>".$info['username'] . " </td></tr>";
}
Print "</table>";
?> Just.. I'd rather it say Account Name Sherman Tanks Character Name Sherman Tanks, Robin Derose
Also I dont want to be able to see other peoples or them to see mine