--- "Pete Czech - New Possibilities Group, LLC" > foreach($number as $n) { Add an echo statement right here that displays the current value of $n. I think you will find that your problem comes sooner than you think. > if ($n == $a) { > $content = ereg_replace("$a", "<b>$a</b>", > $content); //<------ PROBLEM AREA!!! > $correct_amount++; > } > } Chris