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.

Code:
<?php
...