1
Coding / Need help with making an Item
« on: January 08, 2007, 06:40:50 am »
Hi,
I need help making a item.
with this item members can purchase an award to display it on this profile
members awards mod
function onUse:
when I use this item I see this error
Hacking attempt...
here is the table structure:
Thanks for your help!
I need help making a item.
with this item members can purchase an award to display it on this profile
members awards mod
function onUse:
Code: [Select]
function onUse() {
global $db_prefix, $ID_MEMBER, $item_info;
$result = db_query("
INSERT INTO `{$db_prefix}awards_members` VALUES (20003, 2, {$ID_MEMBER}, 2007-01-07, 0);
");
return "Success!";
}
when I use this item I see this error
Hacking attempt...
here is the table structure:
Code: [Select]
ID_AWARD_MEMBER int(8) unsigned NOT NULL DEFAULT '0',
ID_AWARD BIGINT(10) UNSIGNED NOT NULL DEFAULT '0',
ID_MEMBER INT(8) UNSIGNED NOT NULL DEFAULT '0',
dateReceived DATE NOT NULL DEFAULT '0001-01-01',
favorite TINYINT(4) UNSIGNED NOT NULL DEFAULT '0',
UNIQUE KEY ID_AWARD_MEMBER (ID_AWARD_MEMBER),
KEY ID_AWARD (ID_AWARD)
Thanks for your help!