Can you not have more than 2 unique fields in a table or am i doing something wrong here?
I have 1 unique key for username and i want it for email too but i get
#1062 - Duplicate entry '' for key 'email'
alter table users
add unique (email)
Tbl:
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(40) NOT NULL,
`email` varchar(100) NOT NULL,
`registered` int(11) unsigned NOT NULL DEFAULT '0',
`is_active` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)