From 117e1230a2c98cea5296a3ea2ecb84c9a88591f5 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 22:41:36 -1000 Subject: [PATCH] maybe this will work? --- gw-toon.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gw-toon.php b/gw-toon.php index 262cdaf..cdaccaa 100644 --- a/gw-toon.php +++ b/gw-toon.php @@ -24,9 +24,12 @@ if ($whattoon == "0"){ echo ''; } else { $sqltoon = "SELECT charname from `playername` WHERE playerid = $whattoon"; - if ($result2 = $con->query($sqltoon)){ - $row2 = $result2->fetch_row(); - echo '' . $row2['charname'] . ''; + if (!$result = $con->query($sqltoon)){ + die ('There was an error running the query [' . $con->error . ']'); + } + while ($row2 = $result2->fetch_array()){ + $charname2 = $row2['charname']; + echo '' . $charname . ''; } echo '
'; echo '';