|
|
|
@@ -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 . ']'); |
|
|
|
|