Hi Guys,
I’m having a little problem with Cookies when being used with Internet Explorer, i don’t have this problem with any other browser, just Internet Explorer so your help would be very much appreciated.
Here is my code:
if($duplicateip>0){
//do nothing because of duplicate lead from same IP for same campaign
}else{
//add lead
//CHECK IF COOKIE EXISTS BEFORE ADDING LEAD TO DATABASE
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Oops theres an error, our highly trained monkeys have been notified.");
if(isset($_COOKIE['lnm_click'])){
$query = sprintf("INSERT INTO affleads VALUES ('','%s',%s,'%s',%s,%s,%s,%s,%s,%s,'%s','%s','%s','%s')",
quote_smart($p),
quote_smart($pname),
quote_smart($affid),
quote_smart($subid),
quote_smart($adid),
quote_smart($click),
quote_smart($leadip),
quote_smart($status),
quote_smart($referer),
quote_smart($affpayout),
quote_smart($netpayout),
quote_smart($datenow),
quote_smart($timenow));
mysql_query($query) or dies(mysql_error());
mysql_close();
}
};
For some reasons leads are not being added to the database if the browser they are using is Internet Explorer which leaves to be think it has something to do with the code that checks to see if the cookie exists or not.
Does IE block checks to see if there are cookies on the users PC or something, if you guys could help me out that would be great. Like i said it works 100% for all other browsers, just not IE.
Thank guys!