Answer by Barmar for PHP Foreach used to send emails from database?
Put the mailing code in a function, e.g. send_mail(), so that it can be called from different places. Then change your database query loop to:while ($row = mysql_fetch_assoc($result)) {...
View ArticlePHP Foreach used to send emails from database?
I am a bit confused about how to use foreach. I read some internet things on it and I kind of understand how it works, but I don't fully understand it. I think I could use foreach to create a PHP mass...
View Article
More Pages to Explore .....