Hello all, both a newbie at this and need help. I am trying to troubleshoot a php file that compiles fantasy stats. This is not my coding, I got this as an enhancement. I am getting an error on line 333. It says Call to a member function fields() on a non-object in. Any help or guidance would be greatly appreciated.
Here is the part of the file that it errors on The text in bold is where I get the error.
$players_ID=$rs->fields("ID");
$total_value=0;
$sql="select sum(fantasy_value) as total_value from players_statistics_fantasy where players_ID='$players_ID' and leagues_ID=$LEAGUEID and year_ID=$year;";
$fantasy_rs=$DB->Execute($sql);
[B] $total_value=$fantasy_rs->fields("total_value");[/B]
$players_array[$players_ID]=$total_value;
$rs->MoveNext();