When a user logs in my website, it references a character file. In that character file, there is a variable defined, $guild; which if true, has to include a file with guild information.
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.
The first part includes the character file, which is in a session when they log in, and the second part needs to include a guild file if they belong to one.
So, in this case, the character does belong to a guild, let's say, the alpha guild.
In the character file it says
And I have a file on my server called alpha.inc.
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
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.
Code:
<?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
Code:
$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
Comment