echo value_units($value, $key); if ($key == "groupID") { echo " <a href=\"itemsrch.php?srch=group%3A" . $value . "\">See others...</a>"; } if ($key == "raceID" && $value != "") { echo " <a href=\"itemsrch.php?srch=race%3A" . $value . "\">See others...</a>"; } echo "</td></tr>\n"; } $sql = "SELECT attributeID, valueInt, valueFloat FROM " . DB_PREFIX . "dgmTypeAttributes WHERE typeID = '" . mysql_real_escape_string($id) . "'"; $result = $Db->query($sql); if (!$result) { exit; } while ($row = mysql_fetch_assoc($result)) { $attr = $Db->getAttribInfo($row['attributeID']); $name = $attr['displayName'] != "" ? $attr['displayName'] : $attr['attributeName']; $value = $row['valueInt'] != "" ? $row['valueInt'] : $row['valueFloat']; $attr_id = $row['attributeID']; echo "<tr><td>"; echo $name; echo "</td><td>"; if ($attr_id > 181 && $attr_id < 185) { echo $Db->getNameFromTypeId($value); } else { $value = value_units($value, $name); echo $value; } echo "</td></tr>\n"; } mysql_free_result($result);