All pastes #280856 Raw Edit

Mine

public php v1 · immutable
#280856 ·published 2006-12-16 05:59 UTC
rendered paste body
function find_words() {  $a = mysql_query("SELECT word from dictionary")or die(mysql_error());  while($a1=mysql_fetch_row($a)) $words[]=$a[0];  return preg_replace('/'.implode('|',$words).'/i','<b>$1</b>',the_content());}