Jump to content

search and update or insert


csharpy

Recommended Posts

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 or possibly just replace the pattern. An example would be for creating a link to sayyyy 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?

Link to comment
https://forums.phpfreaks.com/topic/161733-search-and-update-or-insert/
Share on other sites

Great it worked!  I appreciate the help.  This is the first question i've posted and will be posting more now that i know i get fast support!!!  thanks again!

Posting something other than asking-for-help topics would be nice. Give something back to the community. Don't be selfish. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.