Changeset 630 for trunk/pages/guildy.php
- Timestamp:
- Aug 26, 2009, 3:07:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/guildy.php
r614 r630 43 43 </tr>'); 44 44 45 $db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']); 45 $Realm = new Realm($System, $_COOKIE['RealmIndex']); 46 $db = $Realm->Database; 47 $db->select_db($Config['Mangos']['RealmList'][$Realm->Id]['DatabaseCharacters']); 46 48 47 49 $sql = $db->query('SELECT `guild`.homepage, `guild`.name, `guild`.guildid, `guild`.createdate, COUNT(`guild_member`.`guildid`) AS member_count ,`leader`.`race` IN (1, 3, 4, 7, 11) AS fraction , `leader`.`guid` AS leader FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `characters` AS `memebers` ON `memebers`.`guid`= `guild_member`.`guid` JOIN `characters` AS `leader` ON `leader`.`guid`= `guild`.`leaderguid` GROUP BY guild.name ORDER BY '.$order_by.' '.$order_dir.';');
Note:
See TracChangeset
for help on using the changeset viewer.