|
okay I solved the problem, it was easy I just am not familiar with php syntax (even though it's pretty close to C++).
if f ($mnth == 1)
{
$december=$row["prior_month"];
}
So, now we have the value of the previous december and using the variable $december in my calculations and finally can calculate the Year to Date fund performance.
|