yea gotta add:
to the bottom ;p)
PHP Code:
CREATE TABLE `ads` (
`id` int(11) NOT NULL auto_increment,
`url_to_banner` varchar(255) NOT NULL default '',
`redirector_url` varchar(255) NOT NULL default '',
`height` int(11) NOT NULL default '0',
`width` int(11) NOT NULL default '0',
`banner_text` varchar(255) NOT NULL default '0',
`guestclicks` int(11) NOT NULL default '0',
`userclicks` int(11) NOT NULL default '0',
`views` int(11) NOT NULL default '0',
`reportuserid` int(11) NOT NULL default '0',
`forumidnum` varchar(4) NOT NULL default '0',
`pagename` varchar(255) NOT NULL default '',
`pagenamedesc` varchar(255) NOT NULL default '',
`bannerbank` int(2) NOT NULL default '0',
`client` varchar(255) NOT NULL default '',
`active` smallint(2) NOT NULL default '1',
`addate` int(10) unsigned NOT NULL default '0',
`origdate` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
PHP Code:
CREATE TABLE `adsclicks` (
`userid` int(11) NOT NULL default '0',
`bannerid` int(11) NOT NULL default '0',
`clicks` int(11) NOT NULL default '0',
PRIMARY KEY (`userid`,`bannerid`)
) TYPE=MyISAM;