Removing Invalid Users
| From: | Clayton Dukes | Date: | Wed, 04 Jul 2001 18:16:37 +0000 |
| Subject: | Removing Invalid Users | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56211@lists.php.net to get a copy of this message | ||
Howdy folks,
How can I write code that will search the database and check the validity of
an email address, and if it's bad, to remove that entry from the database?
Here's a dump one of the tables:
INSERT INTO users VALUES
(1,'','username','email@email.com','','','001.gif','Jul
04,
2001','','title','location','text','',0,0,'','','','field',10,'',0,0,0,'',0,
'','Default',4096,0);
ie:
if the email field is bad (test using sendmail?)
remove that entry from the database.
How can I do this?
TIA!
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net