$item_cache[$result_pls_gm["item_id"]] = $result_pls_gm; } switchConnection("armory", REALM_NAME); $doquery_pls_gm = execute_query("SELECT `item_id` FROM `cache_item_tooltip` WHERE `item_id` IN (" . $visible_item_ids . ") AND `mangosdbkey` = " . $realms[REALM_NAME][2]); $item_tooltip_cache = array(); while ($result_pls_gm = mysql_fetch_assoc($doquery_pls_gm)) { $item_tooltip_cache[$result_pls_gm["item_id"]] = $result_pls_gm; } foreach ($Items as $Key => $Data) { if (!isset($item_cache[$Data[0]])) { $item_cache[$Data[0]] = cache_item($Data[0]); } $item_icon = $item_cache[$Data[0]]["item_icon"]; $item_quality = $item_cache[$Data[0]]["item_quality"]; if (!isset($item_tooltip_cache[$Data[0]])) { cache_item_tooltip($Data[0]); } ?> <tr> <td> <div> <p></p> </div> </td> <td><img class="p43" onMouseOut="hideTip();" onmouseover="showTip('<?php echo $lang["loading"]; ?> '); showTooltip(<?php echo $Data[0], ",", $realms[REALM_NAME][2]; ?> )" src="<?php
</div> </td> </tr> <?php while ($DisenchantLootDetail = mysql_fetch_assoc($DisenchantLootQuery)) { switchConnection("armory", REALM_NAME); $item_query = execute_query("SELECT `item_name`, `item_quality`, `item_icon` FROM `cache_item` WHERE `item_id` = " . $DisenchantLootDetail["item"] . " AND `mangosdbkey` = " . $realms[REALM_NAME][2] . " LIMIT 1"); if (!($DisenchantItemsDisplay = mysql_fetch_assoc($item_query))) { $item_cache[$DisenchantLootDetail["item"]] = cache_item($DisenchantLootDetail["item"]); $DisenchantItemsDisplay["item_name"] = $item_cache[$DisenchantLootDetail["item"]]["item_name"]; $DisenchantItemsDisplay["item_quality"] = $item_cache[$DisenchantLootDetail["item"]]["item_quality"]; $DisenchantItemsDisplay["item_icon"] = $item_cache[$DisenchantLootDetail["item"]]["item_icon"]; } switchConnection("armory", REALM_NAME); if (!mysql_num_rows(execute_query("SELECT `item_id` FROM `cache_item_tooltip` WHERE `item_id` = " . $DisenchantLootDetail["item"] . " AND `mangosdbkey` = " . $realms[REALM_NAME][2] . " LIMIT 1"))) { cache_item_tooltip($DisenchantLootDetail["item"]); } ?> <tr> <td> <div> <p></p> </div> </td> <td width="55"><img class="p43" onMouseOut="hideTip();" onmouseover="showTip('<?php echo $lang["loading"]; ?> '); showTooltip(<?php echo $DisenchantLootDetail["item"], ",", $realms[REALM_NAME][2]; ?> )" src="<?php