From ec0ee9024653b501d0db92295305384430b9e9a4 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 23 May 2017 23:11:00 -1000 Subject: [PATCH] used wrong variable --- gw-pull.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-pull.php b/gw-pull.php index 0708f4f..d10b759 100644 --- a/gw-pull.php +++ b/gw-pull.php @@ -53,7 +53,7 @@ if (mysqli_num_rows($result) > 0) { echo ' named ' . $row['itemname']; } else { //need to insert material linking code here - $matid = $row['materialid']; + $matid = $row['material']; $sqlmat = "SELECT material FROM materials WHERE materialid = $matid"; if (!$resultmats = $con->query($sqlmat)){ die ('There was an error running the query [' . $con->error . ']');