I have a chunk of database text. They are case summaries I am doing for my little law study website project thing.
Whenever I had a case name in the body, i packed it in a <n>Case Name</n> in the hope that i can use some kind of ereg function or something to replace that code with
<a href='index.php4?page=search&&string=Case%20Name'>Case Name</a>
When it outputs. I'm not very familar with the ways of doing this, but im guessing that it would be a waste of processing power to explode the think, how can i roll out ereg to do this?
Any code examples would be greatly appreciated. thanks, mike