MySQL DB query from BBCode possible?
I have a separate DB on the same server as my forum, and would like to offer my users the ability to query that DB from BBCode in their posts.
It's a gaming site, and we maintain a database of the skills in the game, and then frequently post builds on the forums. So ideally, a user would be able to write [skill]Sprint[/skill] and this would be parsed in the post as the icon, description, cost etc.
Is this possible? I haven't been able to figure out how to get PHP into the custom BBCodes. Can anyone point me in a good direction to learn about this?
Thanks,
-Daniel
|