$updatesMade == false;
for($i = 0; $i < sizeof($e); $i++)
{
$updateM_query = "UPDATE mailinglists SET emailAddress='$e[$i]' WHERE seminarID='$id' AND emailAddress='$old[$i]'";
$updateM_result=mysql_query($updateM_query,$dbc) or die (mysql_error());
//echo $updateM_query;
// email addresss is inserted
//Updates have been made
if (mysql_affected_rows() >= 1)
$updatesMade = true;
}
// If updates have been made, print a message.
if($updatesMade === true)
echo '<p class="error">The changes have been updated.</p><br />';
This should do it. Your problem was that the print message was inside your for loop, so got printed out once per update. By moving it outside the loop it only gets printed once.
Robin