Hi, what ive done is made a football points table using PHP, that works out games played, percentages, point differences, etc. that is all done properly but now I want to add pictures etc.
I have a drop box with all the team names (Lions, Crows…) that posts to the next page of the currently 2 page program. The team names ($teams on page 2) parse thru and whatever team was selected is printed. What I want is the corresponding team logos to print depending on what team was selected in the drop box (16 teams). The code I originally tried (but obviously didn’t work) was:
if ($team = "Adelaide Crows") {
print ("<TR><TD>
<IMG SRC='teams\crows.gif'></TD></TR>");
elseif ($team = "Brisbane Lions") {
print ("<TR><TD>
<IMG SRC='teams\lions.gif'></TD></TR>");
}
what happens when I run this is no matter what team I select whether it be lions, crows or another team, it prints the Crows logo, even though it prints the correct team name. What can I do to get around this? Do I need to use multiple if statements? The solution would be greatly appreciated.