Really need help to display badges |
Posted: 17 Jan 2021 17:52 | |||
![]() | Hi, I try, in vain to add badges on my results pages. my codes are these one ![]() How can i do to include $TeamBadge of the second code in the first code ? Thanks | ||
![]() | |||
Posted: 17 Jan 2021 20:24 | |||
![]() zag ![]() Posts: 3,551 Joined: 2020 | You can literally just move the 2nd loop inside the first, its not very efficient but it should work. Personally I would download the logos of the teams and rename to the ID team numbers. Then just use a single line like echo " img src='/images/local/".$teamid.".png"; | ||
![]() | |||
Posted: 17 Jan 2021 22:21 | |||
![]() | It seems OK when i insert the foreach loops inside the others. It is probably not a good way to do but i don't know how to do by your another way Personally I would download the logos of the teams and rename to the ID team numbers. Then just use a single line like echo " img src='/images/local/".$teamid.".png"; Thanks for your help | ||
![]() | |||
Posted: 18 Jan 2021 17:21 | |||
![]() Ovokx ![]() Posts: 1,771 Joined: 2020 | for future requests, please use the correct section of the forum: https://www.thesportsdb.com/forum_section.php?t=7 TY! zag | ||
![]() |
Who is Online? In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm | About Us Discussion forum for TheSportsDB.com site and related topics | Rules - Be Polite - Respect other users - Always post log files with issues - Try to be helpful - No Piracy discussion |