next issue:
Code
$cprof = array(
ice => 0,
fire => 0,
lightning => 0,
wind => 0,
earth => 0,
wildheal => 0,
heal => 0,
focusedheal => 0 );
$c = split(";",$data->cprof);
foreach ($c as $a)
{
$cpn = array( 0 => 'ice', 1 => 'fire', 2 => 'lightning', 3 => 'wind', 4 => 'earth', 5 => 'wildheal', 6 => 'heal', 7 => 'focusedheal');
$temp = split(",",$a);
$cpname = $temp[0];
$cpdata = $temp[1];
$cpname = $cpn[(int)$cpname];
$cprof[$cpname] = $cpdata;
}
$temp = explode(";",$data["cprof"]);
foreach ((array) $temp as $value) {
$temp2 = explode(",",$value);
$cprof[(int)$temp2[0]] = (int)$temp2[1];
}
if i put that code in and i call for $cprof[0]
i do get a 0 like the ice proficiency (0)
but if i want to call for $cprof[5] (wild heal) it doesn't give me any result.
how can i get a result from $cprof[5] (or $wprof[2,3,4]) just like i get with $cprof[0]?