Hi
I need to know how to avoid duplicate names to be entered in my database.
The field I'm trying to avoid duplicate names is Bloom_Name.
Can you please help me.
CREATE TABLE ihs (
id int(11) NOT NULL auto_increment,
Bloom_Name varchar(255) NOT NULL default '',
Pod_Parent text NOT NULL,
Pollen_Parent text NOT NULL,
Hybridiser text NOT NULL,
Origin text NOT NULL,
Grower text NOT NULL,
Color_Group text NOT NULL,
Type_of_Bloom text NOT NULL,
Regular_or_Mini text NOT NULL,
Size_Range text NOT NULL,
Propagation text NOT NULL,
Bloom_Color text NOT NULL,
Bloom_Characteristics text NOT NULL,
Leaf_Characteristics text NOT NULL,
Bush_Characteristics text NOT NULL,
Photo_Credit text NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY Bloom_Name (Bloom_Name)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Created by phpFormGenerator' AUTO_INCREMENT=8729 ;