So, in the profile page where a user views his/her own information, I need to include the guild file, but since there are more than one guild, I have to include a certain guild file.
I have this so far.
Expand|Select|Wrap|Line Numbers
- <?php include('../character_library/'. $_SESSION['name'] .'.inc'); ?>
- <?php
- if ($guild == false) {
- } else {
- include('../character_library/guild_library/'$guild'.inc');
- }
- ?>
So, in this case, the character does belong to a guild, let's say, the alpha guild.
In the character file it says
Expand|Select|Wrap|Line Numbers
- $guild = "alpha";
When I insert the statement, and later on in the page I try to access $guildmaster which is in the alpha.inc file, it just hangs, and does NOTHING.
Thanks for any help you can give me, I'm a bit of a begginner. :-D
-galadrix