I'm not too sure if this is possible; but if it is it would save a lot of manual work.
Basically, a user will look at a item (no longer than 300 words) which is the result of a SQL query. What I want to do is create a function that will search this result for certain key words, and if it finds them make that word a hyperlink.
eg.
Word List:
bob 1
tim 2
james 3
sally 4 ....
Text (from SQL query):
One day bob met sally in the rain. Later on that day ....
What I then want to create ...
One day <a href="page.php?id=1">bob</a> met <a href="page.php?id=4">sally</a> in the rain. Later on that day ...
Any suggestions or pointers would be great. I'm not looking for an out-of-the-box solution, but if you could give me some ideas that would be brill!
Cheers 🙂