kee1108 Posted August 24, 2006 Share Posted August 24, 2006 Hi everyone,I just need some help, I want to know how to get a specific image from a local folder. I dont' mind one image, but if I have 32 images which is correspond to 32 sport teams, how can I make the code so that it will pick the right image correspond to the team and I only have 1 team.php setup.Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/18552-how-to-get-pick-the-right-image-from-a-folder/ Share on other sites More sharing options...
trq Posted August 24, 2006 Share Posted August 24, 2006 You would pass the team name through the url. eg;[code]http://yousite/team.php?t=rangers[/code]Then within team.php you can retrieve the tema name using....[code=php:0]$team = $_GET['t'];[/code]Based on $team you can now retrieve your image and any other relevent data. Link to comment https://forums.phpfreaks.com/topic/18552-how-to-get-pick-the-right-image-from-a-folder/#findComment-79886 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.