I use php and mysql to generate new webpages for my site... what i would like to do is pull information from my mysql database and wherever there is a certain pattern, i would like to insert HTML code before and after that pattern. An example would be for creating a link to say google wherever there is the term google in the text. Hopefully you understand what i'm asking.
an example would be...
before the search and insert...
"why don't you try using google for that?"
after the search and insert...
"why don't you try using <a href=http://www.google.com> google </a> for that?
Searching and inserting
Moderator: General Moderators