PleegWat wrote:$class = isset($_GET['class'])?$_GET['class']:'Warrior';
"WHERE `members`.`class` = '".$class.
// All those people asking about guild searching, here's a spot! and here's the simple alteration to stop guild filtering in this particular place
"LEFT JOIN `".ROSTER_PLAYERSTABLE."` AS players ON `members`.`member_id` = `players`.`member_id` AND `members`.`guild_id` = '$guildId' ".
$class = isset($_GET['class'])?$_GET['class']:'Warrior'."WHERE `members`.`class` = '".$class.
"ORDER BY ";
SQL:
SELECT `members`.`member_id`, `members`.`name`, `members`.`class`, `members`.`note`, IF( `members`.`note` IS NULL OR `members`.`note` = '', 1, 0 ) AS 'nisnull', `members`.`level`, `members`.`guild_rank`, `members`.`guild_title`, `members`.`zone`, DATE_FORMAT( `members`.`last_online`, '%a %b %D, %l:%i %p' ) AS 'last_online', `players`.`race`, `players`.`RankName`, `players`.`RankInfo`, IF( `players`.`RankInfo` IS NULL OR `players`.`RankInfo` = '0', 1, 0 ) AS 'risnull', `players`.`exp`, `players`.`server`, `players`.`clientLocale` , `players`.`RankIcon`, `players`.`Rankexp`, `players`.`hearth`, IF( `players`.`hearth` IS NULL OR `players`.`hearth` = '', 1, 0 ) AS 'hisnull', `players`.`dateupdatedutc` AS 'last_update', IF( `players`.`dateupdatedutc` IS NULL OR `players`.`dateupdatedutc` = '', 1, 0 ) AS 'luisnull' FROM `roster_members` AS members LEFT JOIN `roster_players` AS players ON `members`.`member_id` = `players`.`member_id` AND `members`.`guild_id` = '1' WarriorWHERE `members`.`class` = 'ORDER BY `members`.`level` DESC, `members`.`name` ASC
"WHERE `members`.`class` = '".(isset($_GET['class'])?$_GET['class']:'Warrior')."'"
"LEFT JOIN `".ROSTER_PLAYERSTABLE."` AS players ON `members`.`member_id` = `players`.`member_id` AND `members`.`guild_id` = '$guildId' ".
"WHERE `members`.`class` = '".(isset($_GET['class'])?$_GET['class']:'Warrior')."'"
"ORDER BY ";
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/m/v/a/mvarrieur/html/roster/memberslist.php on line 208
Users browsing this forum: No registered users and 1 guest