Changeset 407 for beta/pages/guildy.php


Ignore:
Timestamp:
Feb 9, 2009, 6:29:42 PM (16 years ago)
Author:
zork
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • beta/pages/guildy.php

    r405 r407  
    6363
    6464
    65 $db -> select_db("realm1_characters");
     65$db -> select_db($db_characters);
    6666
    6767$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.