ok, i'm not a php coder, so this is a feeble attempt to get a result!
Could someone look over this code and find where my syntax is wrong? This is the specific feedback I got from the server:
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 2, 3, 5, 6, 7, 9 ORDER BY `members`.`guild_rank` ASC, `members`
The original code is from memberslist.php, line 206.
- Code: Select all
// 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' ".
"ORDER BY ";
My goal was to have guild ranks 1, 2, 3, 5, 6, 7, and 9 show. Those are the numbers that correspond to "Guild Leader, Officer, Class Leader, Raider, Soldier, Ally, Retired". Here is the code that I modified, and has the incorrect syntax.
- Code: Select all
// 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' WHERE `guild_rank` = 1, 2, 3, 5, 6, 7, 9 ".
"ORDER BY ";
I've made a lot of effort, so I would appreciate any help anyone can offer!
TIA