Hi, I have a search function that show me search code & also URL. suppose i have a table abc & three fileds code name URL. I search for code from text box in my form. that show result code Name 1 yahoo but i want to have hyper link with searched keywords. & require folllowing result instead of above results code Name 1 yahoo can any one explain it. I am really much needed this solution Thanks
2 Steps: get the URL and convert the keyword to its <a href ... and then use str_replace to replace the keyword with the href. e.g. $atag = '<a href="'.$url.'">'.$keyword.'</a>; $finaltext = str_replace($keyword, $atag, $text);