Forum Moderators: open
Is there a way to throughout the site to have a list of "linking words" that would see that "blue widgets" is in the copy and automatically make that into a link to www.bluewidgets.com?
Ie.
blue widgets - www.bluewidgets.com
red widgets - www.redwidgets.com
build the sqlquery, then just loop trough these words... and replace.
Do Until results.EOF
replace(bodycopy, results(0), "<a href=http://" & results(1) & ">" & results(0) & "</a>")
results.MoveNext
Loop
Then at the moment I would be using
Response.Write (Rs2.Fields("fld_widget_text").value)
But I presume I need to do something like
bodycopy = (Rs2.Fields("fld_widget_text").value)
Then run
Do Until results.EOF
replace(bodycopy, results(0), "<a href=http://" & results(1) & ">" & results(0) & "</a>")
results.MoveNext
Loop
But where would this go in the code?