Quantcast
Channel: PHP Foreach used to send emails from database? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



PHP 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
Browsing latest articles
Browse All 2 View Live




Latest Images