Jump to content


This topic is now archived and is closed to further replies.


How to get pick the right image from a folder.

Recommended Posts

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.

Share this post

Link to post
Share on other sites
You would pass the team name through the url. eg;


Then within team.php you can retrieve the tema name using....

$team = $_GET['t'];

Based on $team you can now retrieve your image and any other relevent data.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.