Argh.
OK, picture the scene.
I have a large database full of records, and users can view records individually. What I would like is for the name of another record to be turned into a link when it first appears in another record's body text.
So if a user is reading the body for record 3, and the body keeps referring to record 6, only the first instance of record 6 is turned into a link.
I have used str_replace() but this replaces all instances, and strstr() doesn't seem to work - probably because I am using it incorrectly.
Does anyone have any suggestions?
[Geeky Example]
http://www.starfleetarchive.co.uk/episodes/?ID=670
[/Geeky Example]