Hi,
just recreated table, re-imported data and this is the show create output:
publisher CREATE TABLE `publisher` (
`idpub` int(10) NOT NULL auto_increment,
`abbreviation` varchar(30) default NULL,
`country` varchar(255) default NULL,
`street` varchar(255) default NULL,
`postcode` varchar(255) default NULL,
`city` varchar(255) default NULL,
`address` varchar(255) default NULL,
`name` varchar(255) default NULL,
`website` varchar(255) default NULL,
`email` varchar(255) default NULL,
`oddities` varchar(255) default NULL,
`phone` text,
PRIMARY KEY (`idpub`)
) ENGINE=MyISAM AUTO_INCREMENT=124 DEFAULT CHARSET=latin1
There are 123 rows and here ’s what the indexes values are:
Indexes: Keyname Type Cardinality Action Field
PRIMARY PRIMARY 123 idpub
duplicat key error is now row 1, so did next suggestion
ALTER TABLE `publisher` AUTO_INCREMENT 124;
okay I can add data, so now the test (cause this is where things go wrong), delete through a form:
back to the Duplicate entry ’123’ for key 1 error. I attached the deletion form. Hope someone can find a way out.