diff --git a/gw-toon.php b/gw-toon.php index c56a8b0..090be4e 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -34,13 +34,15 @@ if (!$_SESSION['userid']){ echo '

'; echo '
'; } else { - $sqltoon = "SELECT charname from `playername` WHERE playerid = $whattoon"; + $sqltoon = "SELECT charname, profcolor from `playername` WHERE playerid = $whattoon"; if (!$result2 = $con->query($sqltoon)){ die ('There was an error running the query [' . $con->error . ']'); } while ($row2 = $result2->fetch_array()){ $charactername = $row2['charname']; + $profcolor = $row2['profcolor']; echo '' . $charactername . ''; + echo '