$renew = mysql_query("SELECT product FROM table WHERE productcode = '$sku'")or die(mysql_error());
$row1 = mysql_fetch_array($renew);
$update = $row1[0];
if (preg_match("/$mpn/i", $update)) { $doit = "N";
} else { $doit = "";
}
The problem I'm having is that sometimes $mpn is indeed contained in $update but special characters will cause it not to match. Any ideas?
This post has been edited by Dormilich: 24 September 2012 - 10:37 PM
Reason for edit:: please use [code] [/code] tags when posting code

New Topic/Question
Reply



MultiQuote






|