From 7e120ae6a3b563caef3a631923ed96ee33ae49bb Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Thu, 18 May 2017 00:05:28 -1000 Subject: [PATCH] more research and failing --- gw-pull.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gw-pull.php b/gw-pull.php index 69d1b17..9257dfc 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -10,8 +10,8 @@ if (!$result = $con->query($sql)){ die ('There was an error running the query [' . $con->error . ']'); } while ($row = $result->fetch_array()){ - if (is_null($row['charname'])){ - echo 'No data available for "$cnameid"'; + if (empty($row['charname'])){ + echo 'No data available for that toon'; } else { echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and '; if (is_null($row['material'])) {