diff --git a/gw-history.php b/gw-history.php index 6153974..8fa7a6e 100644 --- a/gw-history.php +++ b/gw-history.php @@ -12,6 +12,7 @@ include_once 'gw-connect.php'; $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); //$cnameid = mysqli_real_escape_string($con, $_POST['cnameid']); //need to sanitize & validate this input somehow $cnameid = $_SESSION['playerid']; +$profcolor = $_SESSION['profcolor']; if ($con->connect_errno > 0){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } @@ -20,6 +21,7 @@ if (!$result = $con->query($sql)){ die ('There was an error running the query [' . $con->error . ']'); } if (mysqli_num_rows($result) > 0) { + echo ''; while ($row = $result->fetch_array()){ echo '