I am trying to create these two tables for a simple script I downloaded but when running the sql command it returns a syntax error.
The error I get is:
CREATE TABLE `usrsig` (
`id` int(9) NOT NULL auto_increment,
`url` varchar(255) default NULL,
`user` int(9) NOT NULL default '0',
PRIMARY KEY (`id`)
KEY `user_own` (`user`)
);
#1064 - 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 'KEY `user_own` (`user`) )' at line 6
And the following for the 2nd tabel:
CREATE TABLE `usruser` (
`id` int(9) NOT NULL auto_increment,
`name` varchar(30) NOT NULL default '',
`pass` varchar(30) default NULL,
`last` datetime default NULL,
`hits` int(9) NOT NULL default '0',
PRIMARY KEY (`id`)
KEY `name_index` (`name`)
);
#1064 - 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 'KEY `name_index` (`name`) )' at line 8
If anyone could be so kind as to help me out I would be greatly appreciative.
Thanks