diff --git a/gw-insert.php b/gw-insert.php
index 4ff12ac..dde549c 100644
--- a/gw-insert.php
+++ b/gw-insert.php
@@ -12,7 +12,7 @@ if ($droptype == 1){
$attrib = mysqli_real_escape_string($con, $_POST['attribute']);
$weap = mysqli_real_escape_string($con, $_POST['weapon']);
$itname = mysqli_real_escape_string($con, $_POST['itemname']);
- echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('variable-date-of-treasure', $toonid, $locid, $gold, $req, $weap , 'variable-attribute-of-weapon', 'variable-rarity-of-weapon', 'variable-name-of-weapon');\"
";
+ echo "SQL code to run: \"INSERT INTO `history` (historydate, charnameid, locationid, goldrec, itemreq, itemtype, itemattribute, itemrarity, itemname) VALUES ('variable-date-of-treasure', $toonid, $locid, $gold, $req, $weap , 'variable-attribute-of-weapon', 'variable-rarity-of-weapon', '$itname');\"
";
//echo '
Well something broke somewhere!
';
} else if ($droptype == 2){
echo 'drop was a rare material!
';
diff --git a/gw-pull.php b/gw-pull.php
index 3f1868e..43602bf 100644
--- a/gw-pull.php
+++ b/gw-pull.php
@@ -16,7 +16,7 @@ if (!$result = $con->query($sql)){
if (mysqli_num_rows($result) > 0) {
while ($row = $result->fetch_array()){
echo 'On ' . $row['historydate'] . ', "' . $row['charname'] . '" got ' . $row['goldrec'] . 'GP and ';
- if ($row['itemtype'] == "Rune") {
+ if ($row['itemtype'] == 16) { //this would be a rune
echo 'a ' . $row['itemtype'] . ' of ' . $row['runetype'];
} else {
if (is_null($row['material'])) {
diff --git a/gw-record.php b/gw-record.php
index 730656e..d554997 100644
--- a/gw-record.php
+++ b/gw-record.php
@@ -3,7 +3,7 @@
include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
#$toonid = mysqli_real_escape_string($con, $_POST['playerid']); //enable this after character selection is working
-$toonid = 'Chrissi Chan'; //delete this line after character selection is finished/working
+$toonid = '3'; //delete this line after character selection is finished/working
#$location = mysqli_real_escape_string($con, $_POST['locationid']); //enable this after location selection is working
$location = 4; //delete this line after location selection is finished/working
$whatdropped = mysqli_real_escape_string($con, $_POST['gwdrop']);
@@ -21,6 +21,7 @@ while ($row = $result->fetch_array()){
$locid = $row['treasureid'];
echo '' . $locname . '';
}
+echo 'on |insert date code here| ';
echo ' a ';
if ($whatdropped == "1"){
echo '