i'm trying to automatically put weather a team is been religated or not.
The value is $outcome and the 'relegation zone' starts below the team in 7th place.
I have tried this but every team get the value S (for safe). It seems like it is just repeating the first value in the array down to the others.
if ($maxpoints > $pts[6])
{
$outcome = R; // if the max points a team can get is less than the team in 7th place they are religted
}
else
{
$outcome = S; // else the team is safe
}
Hope this makes sense..