Josh1billion
02-19-2006, 08:47 PM
Apparently, I have an error in my SQL syntax. I've been looking at this for some time now and I can't find out what the problem is. Hopefully one of you can figure it out.
Here's the line:
CREATE TABLE `test_banlist` (`ban_id` mediumint(8) unsigned NOT NULL auto_increment,ban_userid` mediumint(8) NOT NULL default '0',`ban_ip` varchar(8) NOT NULL default '',`ban_email` varchar(255) default NULL,PRIMARY KEY (`ban_id`),KEY `ban_ip_user_id` (`ban_ip`,`ban_userid`)) TYPE=MyISAM AUTO_INCREMENT=1 ;
The error message:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' mediumint(8) NOT NULL default '0',`ban_ip` varchar(8) NOT NULL
Here's the line:
CREATE TABLE `test_banlist` (`ban_id` mediumint(8) unsigned NOT NULL auto_increment,ban_userid` mediumint(8) NOT NULL default '0',`ban_ip` varchar(8) NOT NULL default '',`ban_email` varchar(255) default NULL,PRIMARY KEY (`ban_id`),KEY `ban_ip_user_id` (`ban_ip`,`ban_userid`)) TYPE=MyISAM AUTO_INCREMENT=1 ;
The error message:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' mediumint(8) NOT NULL default '0',`ban_ip` varchar(8) NOT NULL
