Some Kind Of PHP Replace

WemiBrainalar

New Member
I have this html tag\[code\]<a href="http://stackoverflow.com/questions/3684236/<navigation>3</navigation>">Go Here</a>\[/code\]I want to find any and all references to \[code\]<navigation></navigation>\[/code\], retrieve the int value thats between the \[code\]<navigation>3</navigation>\[/code\] (in this case the number 3), run an sql query and return a record where the id is the value between \[code\]<navigation>3</navigation>\[/code\] (again in this case 3) and replace the entire tag with whatever was returned from the sql query.note: there could be more than one navigation tag within my string. plus a bunch of other html. i want to keep all the other and find, build, and replace new text where the navigation tag is.
 
Back
Top