Hi,
I am not a coder per say, but can understand the logic to some extent (I have some prior C++ coding knowledge so I can relate a bit). I am getting a 'DB query error' when I try to use this script. It was working fine before, then all of a sudden, it just started giving me this error. You can try it yourself at this URL http://www.flexdeals.net/deals/affiliate.php, try to add an link, and you will get an error. I see the code that is producing this error in affiliates.php, it reads:
$url = str_replace("%%".$type."%%", $sku, $vurl);
$result = mysql_query("INSERT INTO `affiliate` (url) VALUES('".$url."')");
if (!$result) die("DB query error");
else {
$jumpurl = "http://www.flexdeals.net/deals/jump.php?m=".mysql_insert_id();
echo "Added url:<br /><a href=\"$url\">$url</a><br />for:<br /><a href=\"$jumpurl\">$jumpurl</a><br />\r\n";
}
Could it have something to do with the database? Maybe the size of the database or something? Thanks in advanced for any help.