Hello
I have some doubts about getting images that are related to the data of my DB.
Lets say that I click on a link called "Superman" in a list of names, so I go to a page with all the info about Superman that comes from my database, and I want to get his picture from a folder called images.
I have done this:
echo "$id";
echo "$superheroe";
echo "<img src=\"../images/$id.jpg\">";
I have named the image the same as the ID of superhero so my logic (maybe not too logic) is that if the ID = superman the image must be named superman too. I only can´t make the relations between that folder and the php code.
Any orientation will be BigTime appreciated
Thanks in advance