Hello there - I'm trying to use the eregi_replace() function, and having no luck.
Please - take a look at my code and let me know what I'm overlooking.
<?
while ($myrow=mysql_fetch_array($desc)){
for($m = 0; $m < count($words); $m++) {
echo "$m \n";
$paco = eregi_replace($words[$m], "<font color='red'><b>$words[$m]</b></font>", $myrow[0]);
echo "<input type=hidden name=words1[] value=\"$words[$m]\">\n";
}
}
echo "<table><tr><td bgcolor=\"#eeeeee\">$paco<br><br>\n";
?>
$words is an array
$desc is a mysql query selecting info from a database
I did verify that both $words and $desc contain values
Any ideas?
Thank,
Joe