01-30-2009, 08:05 PM
|
#20 (permalink)
|
|
The Contributor
Join Date: Jan 2009
Posts: 26
Thanks: 2
|
Ahh I see, didn't think of the foreach function. I also tried it on the equipment. Thanks for the help. Looks nice as well. Haven't skinned it yet but this is what I got so far.
http://hellfireclub.org/testprofile.php?name=Haiasi
Rather than set a predefined character to show, I modified the code to use $_GET to retrieve the name of the character so any character can be viewed.
PHP Code:
$charname = $_GET['name'];
$armory = new armory(character, destromath, NULL, $charname, NULL);
so the page in the url should look like
"pagenamehere.php?name= charactername"
Also, you can do the same for the realm to leave it open for anything
PHP Code:
$realmname = $_GET['realm']; $charname = $_GET['name'];
$armory = new armory(character, $realmname, NULL, $charname, NULL);
Which in turn would make the page in the url look like
"pagenamehere.php?realm= realmname&name= charactername"
I'm a little newbish at php so if I made a mistake, please go easy on me lol.
|
|
|
|