I wrote a script that sends an email to everyone that is checked with a check box.
How might i code the sql stuff to see find everyone's email in the db that has a check in the check box, then send them each a copy of the email?
Thanks
ANthony
While question
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
-
pinehead18
- Forum Contributor
- Posts: 329
- Joined: Thu Jul 31, 2003 9:20 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
if you have an array of ids you want to fetch, implode() in conjunction with mysql IN() function
-
pinehead18
- Forum Contributor
- Posts: 329
- Joined: Thu Jul 31, 2003 9:20 pm