From daed635cb692e4c40194059d76c87ea859361323 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 17 May 2017 23:54:05 -1000 Subject: [PATCH] trying a different method --- gw-pull.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-pull.php b/gw-pull.php index 5e080f5..23d75ca 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -10,7 +10,7 @@ if (!$result = $con->query($sql)){ die ('There was an error running the query [' . $con->error . ']'); } while ($row = $result->fetch_array()){ - if ($row['charname'] == ''){ + if (is_null($row['charname'])){ echo 'No data available for $cnameid'; } else { echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and ';