This is my code:
<?php
$db = mysql_connect("localhost", "kcupp_kevin", "");
mysql_select_db("kcupp_kcupppoll",$db);
$result = mysql_query("Select * From blogroll ORDER BY name ASC",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("<a href=%s target=_blank>%s</a>", $myrow["url"], $myrow["name"]);
$filearray = file("changes.xml");
$searchfor = $myrow["url"];
foreach($filearray as $key => $value) {
if(preg_match("/$searchfor/", $value)) print " *";
else print "";
}
printf("<br>\n");
} while ($myrow = mysql_fetch_array($result));
} else {
echo "Sorry, no records were found!";
}
?>
And this is the error:
Warning: Unknown modifier '/' in /home/kcupp/public_html/search2.php on line 12