Thanks for your reply's guys... I know how to designate fields as unique in MySQL, but my problem is that there are currently duplicate records and I can't just eleminate based upon one field in the table.
I need to be able to allow duplicates of the targetEmail field, because the same person can be registered with multiple clientID's.
What do you think about a way to display all records that have both the same targetEmail and clientID?
I found one idea on a message board, but cant get it to work. Let me know what you think... Thanks again for your help guys!!!
http://www.15seconds.com/issue/011009.htm
----------------------------
My Table structure is below...
# phpMyAdmin MySQL-Dump
# version 2.2.6
#
http://phpwizard.net/phpMyAdmin/
#
http://www.phpmyadmin.net/ (download page)
#
# Host: localhost
# Generation Time: Aug 28, 2003 at 08:37 AM
# Server version: 3.23.55
# PHP Version: 4.2.2
# Database : `aci`
# --------------------------------------------------------
#
# Table structure for table `target`
#
CREATE TABLE target (
targetID int(11) NOT NULL auto_increment,
targetEnteredDate varchar(8) NOT NULL default '0',
targetEmail varchar(50) default NULL,
targetFirstName text NOT NULL,
targetLastName text,
targetStreetAddress varchar(50) default NULL,
targetCity text,
targetState text,
targetZip varchar(11) default '0',
targetFirstTimeCustomer text NOT NULL,
targetBirthday1 varchar(4) default NULL,
targetBirthday1Name text,
targetBirthday2 varchar(4) default NULL,
targetBirthday2Name text,
targetBirthday3 varchar(4) default NULL,
targetBirthday3Name text,
targetBirthday4 varchar(4) default NULL,
targetBirthday4Name text NOT NULL,
targetBirthday5 varchar(4) default NULL,
targetBirthday5Name text NOT NULL,
targetAnniversary varchar(4) default NULL,
clientID int(11) NOT NULL default '0',
targetAdType text,
targetSpecialInterest1 text,
targetSpecialInterest2 text,
targetSpecialInterest3 text,
targetSpecialInterest4 text,
targetSpecialInterest5 text,
targetSpecialInterest6 text,
targetOther1 text,
targetOther2 text,
targetBillAmount int(11) default NULL,
targetServer varchar(25) default NULL,
targetFTEmailSent char(1) default NULL,
PRIMARY KEY (targetID),
KEY clientID (clientID)
) TYPE=MyISAM;