Hi there all,
I am having a problem with a level system ive been given in flash and i had to take it and turn it into php code,
How i did this manually but not sure what i did wrong this is my php code,
$mexp=array(0,100,210,330);
for($i=0; $i<=$mexp; $i++)
{
if ($c>=$mexp[$i] && $c<$mexp[$i]+1)
{
echo "".$i."";
}
else
{
return $i;
}
}
How can i fix it? is it possible to calculate the number as the user’s exp is 600 and if its between 600 and 750 then its x level which is about level 5 or 6 using php can this be done if so how can i go about this?
Thanks,William