Code: Select all
$romanurl = "https://sub.site.com/data.asp?storeid=44444&categoryid=$rows->romancartcatid";
$contents = file_get_contents($romanurl);
if (preg_match("$row2->romancode", $contents))
{
echo "Correct code";
}I want to check if $row2->romancode is within that batch of code. I thought using this script would work. But preg_match just isn't working. Am I doing it work, with the quotes or anything like that?