This is exactly what I need help accomplishing!
Ok, let me start over...
I have a card database consisting of over 300 cards. Each card has a unique image. For example, "Infiltrate" is ST4.jpg, "Forge" is ST20.jpg, etc. But the user does not know the image names, he only knows that there exists a card named "Infiltrate" and a card named "Forge".
So the user types:
Code: Select all
[card]Infiltrate[/card]
[card]Forge[/card]
Now here's where the magic happens. And I'm not sure how to do this. I need to be able to take the user's input, ie. the card name, and search a database to get the image name so that I can display the correct image. Once this is done, the above would be replaced with:
Code: Select all
<a href="http://my-site.com/forum/images/cards/ST4.jpg" class="preview">Infiltrate</a>
<a href="http://my-site.com/forum/images/cards/ST20.jpg" class="preview">Forge</a>
I hope this is making sense, because I'm really at a loss and don't know what to do.
Thanks again!