NEW PROBLEM
in sone instances, my replace misses it's target, for example if I want to replace every instance of dakota, with NORTH in
dakota dakota dakota dakota dakota, it would actually come out
dakota north north north north here's some code:
function filter($string){
$querylist=mysql_query("select * from filter where userid='$username'");
$list=mysql_result($querylist, 0, 'content');
$listarray=explode(",", $list);
while (list($ArrayIndex, $ArrayContent) = each ($listarray))
{
$string=eregi_replace("$ArrayContent", " *** ", $string);
}
echo $string;
}}