After a long day of hairpulling and gnashing of teeth, this thing works. My version of MySQL does not allow subselects in the SQL query so I could not use the HAVING count(*)>1 thing in the query. So I nested another query while the first query was being done. If I have done anything impertinent or contrary to protocal please let me know, as I have learned everything I know from this board and the php manual--all my degrees are liberal arts degrees, not computer science.
<ol>
<?
include("/path/to/your/openmysql/dbopen.inc");
$result=mysql_query("SELECT COUNT(email),email,ID FROM Tablename GROUP BY email");
while($row=mysql_fetch_row($result)){
$count=$row[0];$email=$row[1];$ID=$row[2];
echo"<li>";echo$count;echo$email;echo$ID;
if($count>1)
{$delete=mysql_query("DELETE from Tablename WHERE ID='$ID'");
if(!$delete){echo"Not Done";}else{echo"<b><big>Done</big></b>";}}}
?></ol>
<ol>
<?
include("/path/to/your/openmysql/dbopen.inc");
$result=mysql_query("SELECT COUNT(email),email,ID FROM Tablename GROUP BY email");
while($row=mysql_fetch_row($result)){
$count=$row[0];$email=$row[1];$ID=$row[2];
echo"<li>";echo$count;echo$email;echo$ID;
if($count>1)
{$delete=mysql_query("DELETE from Tablename WHERE ID='$ID'");
if(!$delete){echo"Not Done";}else{echo"<b><big>Done</big></b>";}}}
?></ol>