shantzios - 10:46 pm on Aug 14, 2012 (gmt 0)
I want to achieve following but dont know how to do so:
I have content of my page...
$nodecontent="this is test NIke CaLLaway page redirect blah blah"
I have my table in mysql which has link and url fields:
I want to first look if these 2 words are in the string above and if they are present then i want to replace those words in the string with respective url.
so final output shud be:
this is test <a href="www.nike.com">NIke</a> <a href="www.callaway.com">CaLLaway</a> page redirect blah blah"
Want to replace words in string with a tag where url is coming from database.