'.$leadername.'
'; } echo '
Name | G | A | P |
---|---|---|---|
'.$player['Name'].' | '.$player['ProG'].' | '.$player['ProA'].' | '.$player['ProPoint'].' |
the chart works fine, but i want the table to print the name and photo of the top scorer above the chart. $leaderphoto should correspond to “Ryan Getzlaf.jpg”, which is the player photo for peyton nydroj, the current leading scorer. however, the value of $leaderphoto is being returned as null.
i’m sure this is very poor code and that there’s a more efficient way to do this ,but if anyone happens to be good at php and sees where i am going wrong, let me know.