Changeset 691 for trunk/pages/spolky.php
- Timestamp:
- Mar 19, 2010, 9:46:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/spolky.php
r690 r691 49 49 $db2 = $Realm->CharactersDatabase; 50 50 51 $sql = $db2->query('SELECT `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.';');51 $sql = $db2->query('SELECT `guild`.name, `guild`.guildid, FROM_UNIXTIME(`guild`.`createdate`) AS `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.';'); 52 52 while($row = $sql->fetch_assoc()) 53 53 { … … 64 64 echo('<tr> 65 65 <td align="center">'.FrakceImg($row['fraction']).'</td> 66 <td align="center"><a href="'.$html->Link('/spolek/ '.$row['guildid'].'/').'">'.$row['name'].'</a></td>66 <td align="center"><a href="'.$html->Link('/spolek/?id='.$row['guildid']).'">'.$row['name'].'</a></td> 67 67 <td align="center">'.$row['member_count'].'</td> 68 68 <td align="center">'.$online_mem['online_mem'].'</td>
Note:
See TracChangeset
for help on using the changeset viewer.