When attempting to add a new block with addsense php i get the following error. I did several searches before posting this and I couldn't find any suggestions that worked. I tried adding the block in IE and Firefox and I eliminated any extra carriage returns. I also made sure I was using a unique block title.
Any help would be appreciated. Thanks!
user error: Duplicate entry '' for key 3
query: INSERT INTO boxes (title, body, info, format) VALUES ('Adsense Block', '
if (module_exist(\"adsense\"))
{
print adsense_display(\"120x600\", 2, 4);
}
', '', 2) in /home/mysitename/public_html/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/mysitename/public_html/includes/com
Comments
Above error message explanation
Apparently the if statement about adsense in my above post was replaced with an error message in these forums. Hope that doesn't confuse anyone. I am already beyond confused... :-)
This what was where the above forum error is...
INSERT PHP BRACKET HERE if (module_exist(\"adsense\"))
{
print adsense_display(\"120x600\", 2, 4);
} INSERT PHP BRACKET CLOSER HERE