List of emails, delete rows out of a table
问题 If I have a list of of email accounts in a .txt file, is there a way I can perform a mysql delete statement for each instance of the rows that contain the email account against a table? We have a newsletter mailing list which around 600 emails are currently invalid, and we want an easier way of getting rid of them besides manually going in one by one to do it. 回答1: Assuming you want to use the text file's contents as the source of addresses to delete from the database: $addreses = file(